首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >C# WPF新版开源控件库:Newbeecoder.UI颜色选择器

C# WPF新版开源控件库:Newbeecoder.UI颜色选择器

原创
作者头像
用户7152477
发布2022-01-04 11:27:44
7490
发布2022-01-04 11:27:44
举报
文章被收录于专栏:CSharp编程CSharp编程

在Newbeecoder.UI控件中默认颜色选择器通过按钮来选择颜色内容,

颜色选择器用于浏览和选择颜色。默认情况下,浏览色谱上的颜色,或在红-绿-蓝 (RGB)、色相或十六进制文本框中指定颜色。

CornerRadius属性表示可设置控件圆角。

Color 属性表示可设置选择器的颜色部分。

Text 表示当前选择的颜色文本内容。

PopupBackground 表示弹出的背景色。

PopupEffect 属性表示弹出阴影效果。

LabelHex 属性表示十六进制颜色值。

Demo版下载地址:https://download.csdn.net/download/liaohaiyin/63234875

Newbeecoder.UI控件库根据用户需求开发稳定而高效项目,通过视频来演示控件库整体功能

先浏览一下颜色选择器效果和调用代码:

调用代码

<NbColorPicker Width="90" Height="32" Margin="4" Text="主题色" Style="{DynamicResource DefaultColorPickerStyle}" Color="{Binding Path=Color.Brand1, Source={x:Static NbTheme.Current}}"/>
<NbColorPicker Width="90" Height="32" Margin="4" Text="成功色" Style="{DynamicResource DefaultColorPickerStyle}" Color="{Binding Path=Color.Success1, Source={x:Static NbTheme.Current}}"/>
<NbColorPicker Width="90" Height="32" Margin="4" Text="信息色" Style="{DynamicResource DefaultColorPickerStyle}" Color="{Binding Path=Color.Info1, Source={x:Static NbTheme.Current}}"/>
<NbColorPicker Width="90" Height="32" Margin="4" Text="警告色" Style="{DynamicResource DefaultColorPickerStyle}" Color="{Binding Path=Color.Warning1, Source={x:Static NbTheme.Current}}"/>
<NbColorPicker Width="90" Height="32" Margin="4" Text="危险色" Style="{DynamicResource DefaultColorPickerStyle}" Color="{Binding Path=Color.Danger1, Source={x:Static NbTheme.Current}}"/>

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档