Hi, I am currently using the evaluation version to experiment with the color selection tools.
I was trying to hook into the GradientBrushSlider:SelectedBrushChanged Event but this results in an ArgumentException('Handler Type is Mismatched').
I have simplified everything to the bare bones and cannot see what I'm doing wrong. I have previously used near identical code to handle the SpectrumColorPicker:SelectedColorChanged Event. I include the relevant parts from both cases below.
SpectrumColorPicker ex. Works correctly.
in MainWindow.xaml
<shared:SpectrumColorPicker SelectedColorChanged="SpectrumColorPicker_SelectedColorChanged"/>
in MainWindow.xaml.cs:
private void SpectrumColorPicker_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs<Color> e)
{
// do something
}
GradientBrushSlider ex. Fails withArgumentException('Handler Type is Mismatched').
in MainWindow.xaml
<shared:GradientBrushSlider SelectedBrushChanged="GradientBrushSlider_SelectedBrushChanged"/>
in MainWindow.xaml.cs file:
private void GradientBrushSlider_SelectedBrushChanged(object sender, RoutedPropertyChangedEventArgs<GradientBrush> e)
{
// do something
}
Any thoughts appreciated.
R Knight.