How to use RoutedCommands like TogglePlayPause
WCF and WF
1
Posts
1
Posters
1
Views
1
Watching
-
I'm wondering what the practice is for using a command that toggles states between two other commands. If I implemented something like the existing command TogglePlayPause, how would it notify the button what state it should be in, pause or play--without creating a custom button control? What I'm trying to do is implement a ToggleMaximizeRestore for a frameless window, and I'm not sure how to implement it so that all of the command logic is taken care of.