hello,
I use a colorselector in a raddropdownbutton (on a ribbon), to select color for several objects.
i have a framework as described bellow.
I'd like that each time i click on "color" button, the selectedcolor is empty.
because i need to be able to apply the same color for different objects, and sometimes user doesn't select all at one time, but select one defines a color, the selects another object and want to define same color. then he needs to change color selection, then reopen colorselector to choose right color.
thanks for your expertise
Aurore
I use a colorselector in a raddropdownbutton (on a ribbon), to select color for several objects.
i have a framework as described bellow.
I'd like that each time i click on "color" button, the selectedcolor is empty.
because i need to be able to apply the same color for different objects, and sometimes user doesn't select all at one time, but select one defines a color, the selects another object and want to define same color. then he needs to change color selection, then reopen colorselector to choose right color.
<Window x:Class="tlk_colorpicker.MainWindow" Title="MainWindow" Height="350" Width="525"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <tlk:RadDropDownButton Content="Color" x:Name="color"> <tlk:RadDropDownButton.DropDownContent> <tlk:RadColorSelector SelectedColorChanged="PredefSelectedColorChanged" NoColorVisibility="Collapsed" /> </tlk:RadDropDownButton.DropDownContent> </tlk:RadDropDownButton> <Rectangle x:Name="oRect" Width="50" Height="50" Grid.Row="2" Fill="AliceBlue" /> </Grid></Window>private void PredefSelectedColorChanged(object sender, EventArgs e) { oRect.Fill = new SolidColorBrush(((RadColorSelector)sender).SelectedColor); color.IsOpen = false; }thanks for your expertise
Aurore