Attach commands using the same method as we do, in Silverlight, with the exception of binding to the viewmodel, the interface and the class that implements it will be used. This class should be used as a locator in the datacontext and declared in the app.xaml.cs file. Please let me know if you need more information.
source share