The procedure for creating the MvvmCross Store app for Windows 8.1 from scratch?

Using Visual Studio 2013, I am creating a new Windows Store application for Windows 8.1 based on MvvmCross.

First, I create my PCL.Core class library with view models in accordance with the instructions in the Core.txt to-do file.

Next, I create the .Store application, following the instructions in the Windows Store UI.txt repository file. I want to use the navigation infrastructure, so I am replacing the page with the FirstView.xamlbase page FirstView.xaml.

According to the instructions, the class LayoutAwarePageshould inherit MvxStorePage, but since it is LayoutAwarePage.csno longer included in the VS2013 / 8.1 repository projects, instead I change the page FirstView.xamlto MvxStorePageType:

<views:MvxStorePage x:Name="pageRoot" x:Class="App.Store.Views.FirstView"
 ... >
...
</views:MvxStorePage>

, FirstView , , ! View-View MvvmCross Windows Store 8.1?

+1
1

, Windows UI.txt:

- xaml.cs .xaml BasicPage - 5 .
- Common/LayoutAwarePage.cs Cirrious.MvvmCross.WindowsStore.Views.MvxStorePage
   - Common/LayoutAwarePage.cs - OnNavigatedTo OnNavigatedFrom
  - Xaml - . <TextBlock Grid.Row="1" Text="{Binding Hello}"/>

OnNavigatedTo OnNavigatedFrom FirstView.xaml.cs, FirstViewModel FirstView.

, , Windows Store Windows 8.1 :

  • .xaml <Page> <views:MvxStorePage>.
  • .xaml.cs OnNavigatedTo OnNavigatedFrom.

, , DefaultViewModel DefaultViewModel .xaml.cs, DataContext <views:MvxStorePage> .xaml, DataContext MvvmCross.

+4

All Articles