
XAML for Windows Runtime does not support x :Static, so don't attempt to use the x:Static markup extension if the command is used from Windows Runtime XAML. Implement the command by defining a class that implements ICommand and specifically implement the Execute method.


If you're defining commands for Windows Runtime apps you use basically the same techniques you'd use for defining commands for a. These commands provide the commanding behavior for UI elements such as a Windows Runtime XAML Button and in particular an AppBarButton. The ICommand interface is the code contract for commands that are written in. RoutedCommand and RoutedUICommand are two implementations of the ICommand interface in Windows Presentation Foundation (WPF).
