Hi,
We are using XAM Color Picker and we bind property like <ig:XamColorPicker x:Name="MyColorPicker" Grid.Row="1" Grid.Column="1" DerivedPalettesCount="10" HorizontalAlignment="Left" Width="100" Height="30" SelectedColor="{Binding Path= CalendarEventPropertyModel.CaleventPropertyCode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowRecentColorsPalette="False"> </ig:XamColorPicker>
when we get the selected color value, we are only getting the color code but along with that we want to get selected color Name.
Please let us ware how to achieve this. Your help would be appreciate.
Thanks.
Hi piyu,
The SelectedColor property on the XamColorPicker is a System.Windows.Media.Color object. From what I've found there's no built in way to get the color name from this type of Color in .NET. A quick search of the web, though, turns up different ways you can do this. Try this: http://stackoverflow.com/questions/3934747/system-windows-media-color-to-color-name