public MainPage() { int visibleItems = 0; #if WINDOWS_APP visibleItems = 6; #endif this.ViewModel = new MainViewModel(visibleItems); this.NavigationCacheMode = NavigationCacheMode.Required; this.InitializeComponent(); ViewModel.Actions.Add(new ActionInfo { Name = "PrivacyButton", Style = ActionKnownStyles.Privacy, ActionType = ActionType.Secondary, Command = PlatformCommands.Privacy }); }
public HomePage() { ViewModel = new MainViewModel(12); InitializeComponent(); NavigationCacheMode = NavigationCacheMode.Required; }