L
Lloyd Dupont
I tried to create a SetColor command and a ColorPicker which uses it.
There is one effect I cannot reproduce, it is tracking the CommandSource and
wether it's valid.
By that I mean if I create a MenuItem like that:
<MenuItem Header="Blue" Command="{x:Static local:MyCommands.SetColor}"
CommandParameter="{x:Static Colors.Blue}" />
It enables/disables depending on wether the currently focused element
respond to the SetColor command.
But my ColorPicker never get any CanExecute or whatever event call,
therefore I cannot update it appropriately (i.e. enable/disable) when the
focused element change.
I implemented ICommandSource, used a RoutedEvent, I never get any relevant
info....
Any idea what I could have missed?!?
There is one effect I cannot reproduce, it is tracking the CommandSource and
wether it's valid.
By that I mean if I create a MenuItem like that:
<MenuItem Header="Blue" Command="{x:Static local:MyCommands.SetColor}"
CommandParameter="{x:Static Colors.Blue}" />
It enables/disables depending on wether the currently focused element
respond to the SetColor command.
But my ColorPicker never get any CanExecute or whatever event call,
therefore I cannot update it appropriately (i.e. enable/disable) when the
focused element change.
I implemented ICommandSource, used a RoutedEvent, I never get any relevant
info....
Any idea what I could have missed?!?