我一直在試圖從工具箱中我的應用程序工作的新顏色拾取,沒有成功...新的擴展WPFToolkit顏色拾取
這裏是應該拿起窗口背景的顏色樣本代碼填充當前顏色,並在新的選擇,應該是背景顏色改變爲所選顏色...
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="100" Width="200" xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
Name="Window" Background="blue">
<Grid>
<extToolkit:ColorPicker Name="colorPicker1"
SelectedColor="{Binding ElementName=Window,Path=Background}"
CurrentColor="{Binding ElementName=Window,Path=Background}" />
</Grid>
</Window>
這是我已經能夠找到的顏色拾取的文檔... http://elegantcode.com/2010/08/15/extended-wpf-toolkit-new-colorpicker-control/
謝謝Meleak!你再次幫助我! – 2010-11-14 14:02:43