Hello,
In a wpf project (3.5), define a colorpicker, a button and a rectangle :
the rectangle display the color choosen in the colorpicker.
Select a color (named colorA), the color is well associated in the rectangle.
Re-open colorpicker, the selectedcolor (dashed line around the latest color choosen) is ok.
Now click on the button
I'd like to set the selected color to a color (ColorB) which is not in the main palette.
The rectangle is ok but Re-open colorpicker, the selectedcolor (dashed line around the latest color choosen) is not ok.
the dashed line still on the colorA....
Have you a way to undisplay dash line of previous selected color ?
Regards
Aurore
In a wpf project (3.5), define a colorpicker, a button and a rectangle :
the rectangle display the color choosen in the colorpicker.
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="5"> <tlk:RadColorPicker x:Name="picker"/> <Button Content="Click" Width="40" Height="30" Click="Button2_Click" /> <Rectangle Width="40" Height="40" Margin="0 10 0 0"> <Rectangle.Fill> <SolidColorBrush Color="{Binding ElementName=picker, Path=SelectedColor}" /> </Rectangle.Fill> </Rectangle> </StackPanel>Select a color (named colorA), the color is well associated in the rectangle.
Re-open colorpicker, the selectedcolor (dashed line around the latest color choosen) is ok.
Now click on the button
private void Button2_Click(object sender, RoutedEventArgs e) { picker.SelectedColor = Colors.Transparent; //Color.FromArgb(255, 216, 202, 206);// colorB }I'd like to set the selected color to a color (ColorB) which is not in the main palette.
The rectangle is ok but Re-open colorpicker, the selectedcolor (dashed line around the latest color choosen) is not ok.
the dashed line still on the colorA....
Have you a way to undisplay dash line of previous selected color ?
Regards
Aurore