我有以下XAML:
HorizontalAlignment="Right"
Grid.Column="2"
Width="18"
Style="{StaticResource OrangeButton}"
ContextMenuClosing="colorPallete_ContextMenuClosing"
x:Name="btnSelectColor">
Fill="{DynamicResource CheckerBrush}"/>
Width="100" BorderThickness="0"
Text="{Binding ElementName=colorPicker, Mode=TwoWay, Path=SelectedColorName}"/>
当ContextMenu标签colrPallete关闭时,不会调用事件处理函数colorPallete_ContextMenuClosing。我似乎无法弄清楚缺少的东西。
请帮忙! TIA。