Examples

Recommended before going through examples:

Optional:

Important: None of these examples currently take into account the app life-cycle of a Windows Store application. So be aware if you are working on a real app that the life-cycle will need to be handled correctly. See the msdn article Part 2: Manage app lifecycle and state (Windows Store apps using C#/VB and XAML) for details.

Examples (checkout specific revision to run):

TODO:

  • MvvmLightToolkit “EventToCommand” does not appear to be available for Windows Store apps. For WPF apps, it enables triggering a specific command when a particular event occurs.MvvmLightToolkit: EventToCommand not available for Windows Store Apps? Possible replacement is the behavior SDK, but I keep getting errors, see: , another possibility is http://winrttriggers.codeplex.com/. Or it would probably not be too difficult to implement a generic enough custom behavior to take its place? Example 4 pretty much shows how to do it in a very specific scenario - a more generic helper would need to add a dommand parameter dependency property as well.
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.