SelectedColorChanged event is not fired when SfColorPalette is in Flyout

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

1 Reply

VR Vijayalakshmi Roopkumar Syncfusion Team July 13, 2018 09:00 AM UTC

Hi Lee

Thank you for contacting Syncfusion Support

We have checked the reported issue with SfColorPalette and we were able to reproduce it. We have logged a defect a report on this and the fix would be included in our upcoming Volume 2, SP1 release 2018. It will be available by the end of July 2018.

Regards
Vijayalakshmi V.R. 


Loader.
Up arrow icon