ARCGIS PRO DSK 颜色选择控件(ColorPickerControl)的调用

颜色选择控件ColorPickerControl 。

一、XAML 集成方式

1 、在WPF窗体上使用,xml:加入空间命名引用

复制代码
xmlns:ui1="clr-namespace:ArcGIS.Desktop.Internal.Mapping.Symbology;assembly=ArcGIS.Desktop.Mapping" xmlns:uil="http://schemas.xceed.com/wpf/xaml/toolkit"

2、在<Grid>中加入

复制代码
<Grid>
    <!-- 颜色选择器控件 -->
    <uil:ColorPicker Name="MyColorPicker" SelectedColor="{Binding SelectedColor}" 
             Width="100" 
             Height="30"
             HorizontalAlignment="Left"
             VerticalAlignment="Top"/>
</Grid>

3、选择事件

复制代码
Private Sub MyColorPicker_SelectedColorChanged(sender As Object, e As RoutedPropertyChangedEventArgs(Of Color?)) Handles MyColorPicker.SelectedColorChanged
    Dim picker As ColorPicker = DirectCast(sender, ColorPicker)
    Dim selectedColor As Color? = picker.SelectedColor
End Sub
相关推荐
行者-全栈开发9 天前
【供应链攻击】CVE-2026-45321:TanStack供应链攻击漏洞深度解析与修复指南
arcgis
思特奇时空智能10 天前
大规模点要素地图渲染性能优化实践
vue.js·arcgis·性能优化·node.js·html·gis·webgl
上海懒图科技17 天前
工厂厂区电子地图定位导航:厂区人车精准定位,安全合规双保障
前端·arcgis·vue
非科班Java出身GISer21 天前
ArcGIS JS 基础教程(48):SceneView watch 状态监听
arcgis·arcgis js基础·arcgis js入门·arcgis js监听状态·arcgis js监听事件·arcgis js 监听飞行·arcgis js 监听功能
JudithHuang23 天前
React 嵌套路由与布局
前端·react.js·arcgis·react·react router
Dxy123931021625 天前
JS DES 加密详解
开发语言·javascript·arcgis
非科班Java出身GISer1 个月前
ArcGIS JS 基础教程(46):编辑要素属性 FeatureForm
arcgis·arcgis js编辑要素·arcgis js 要素·arcgis js要素属性·arcgis js 编辑属性·arcgis js编辑要素属性
梅如你1 个月前
ISPRS | 1990-2020年间中国人工林与天然林的空间分布数据
arcgis·gis·遥感
limit00751 个月前
公开 WMTS / XYZ 瓦片接入 Cesium:6 类常见问题与排查顺序
chrome·低代码·arcgis·web3·旅游
limit00751 个月前
三维模型悬空与切片偏移的排查顺序
低代码·3d·arcgis·web3·安卓·webgl