The SfColorPalette looks great. However, I am having issues getting the SelectedColorChanged event to fire when I use the control within a Flyout.
My use case is that when the flyout is displayed, it contains the SfColorPalette when the user picks a color from the pallet the button background changes.
The MainPage.xaml
<Grid>
<Button Content="Click me" x:Name="TheButton">
<Button.Flyout>
<Flyout>
<StackPanel>
<media:SfColorPalette x:Name="colorPalette" SelectedColorChanged="ColorPalette_OnSelectedColorChanged"/>
</StackPanel>
</Flyout>
</Button.Flyout>
</Button>
</Grid>
In the code behind I have the event handler
private void ColorPalette_OnSelectedColorChanged(object sender, DependencyPropertyChangedEventArgs e)
{
TheButton.Foreground = new SolidColorBrush() { Color = colorPalette.SelectedColor };
}
The code never calls ColorPalette_OnSelectedColorChanged (see attached code).
Attachment:
ColorPalletExample_9422c237.zip