We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Our case is
<fluent:ColorGallery x:Name="CellFillColorPicker" Mode="ThemeColors" IsAutomaticColorButtonVisible="False" ThemeColorGridRows="0" Columns="10" IsNoColorButtonVisible="True"> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectedColorChanged"> <i:InvokeCommandAction Command="{Binding SetBackgroundColorCommand}" CommandParameter="{Binding ElementName=CellFillColorPicker, Path=SelectedColor}" /> </i:EventTrigger> </i:Interaction.Triggers> </fluent:ColorGallery>
In sources we can see next
private static void OnSelectedColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ColorGallery colorGallery = d as ColorGallery; if (colorGallery == null) return; colorGallery.RaiseEvent(new RoutedEventArgs(ColorGallery.SelectedColorChangedEvent)); Color? color = (Color?) e.NewValue; colorGallery.UpdateSelectedColor(color); }
Why do we have so strange logic? I have received an old value of color in the handler of specified command in XAML!
The text was updated successfully, but these errors were encountered:
Looks like an oversight. No need to use exclamation marks...
Sorry, something went wrong.
aafd05d
batzen
No branches or pull requests
Our case is
In sources we can see next
Why do we have so strange logic?
I have received an old value of color in the handler of specified command in XAML!
Environment
The text was updated successfully, but these errors were encountered: