简体   繁体   English

Windows应用商店的颜色选择器

[英]Color Picker for Windows store App

I want to add a color picker control to a windows store App (using VB), I came to know that there is no standard control for that. 我想将颜色选择器控件添加到Windows应用商店(使用VB),我知道没有标准控件。 So any ideas about what could be a good purchased or open source option? 那么关于什么可能是好的购买或开源选择的任何想法?

So I started building one into WinRT XAML Toolkit here but never got round to finishing it. 因此,我开始在此处将其构建到WinRT XAML Toolkit中但始终没有完成它。 Mainly because I figured there would need to be very different designs for different platforms. 主要是因为我认为针对不同平台需要有非常不同的设计。 The control isn't finished, but a lot of the components that are there you could use to build a color picker that fits your design. 控件尚未完成,但是您可以使用其中的许多组件来构建适合您设计的颜色选择器。 There's a ColorExtensions class that might help you convert between HSL/HSV/RGB models, there's a FromString() method in it that can parse a color string in the formats available in XAML (eg "Transparent" or #FFAA0080 or #FB0) and there's a WriteableBitmapColorPickerExtensions class that you can use to render a hue ring, 2D color selector bitmap or a 1D color bar. 有一个ColorExtensions类可以帮助您在HSL / HSV / RGB模型之间进行转换,其中有一个FromString()方法可以解析XAML中可用格式的颜色字符串(例如,“透明”或#FFAA0080或#FB0),并且有一个WriteableBitmapColorPickerExtensions类,可用于渲染色相环,2D颜色选择器位图或1D颜色条。 I'll probably create some usable controls one day to use all of these primitives, but for now - you have that power! 我可能有一天会创建一些可用的控件来使用所有这些原语,但现在-您拥有这种功能! :) :)

在此处输入图片说明

I've created a simple color picker for Universal Apps, you can read about it from this blog post ... 我为Universal Apps创建了一个简单的颜色选择器,您可以从此博客文章中了解有关它的信息 ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM