public MainPage() { this.InitializeComponent(); FrameLeft.Navigate(typeof(WatchFacesPage)); FrameRight.Navigate(typeof(ConnectPage)); /*if (IsMobile) * { * MySplitView.CompactPaneLength = 0; * FrameRight.Visibility = Visibility.Collapsed; * MainGrid.ColumnDefinitions.RemoveAt(1); * btnConnect.Visibility = Visibility.Visible; * } * else * { * FrameRight.Navigate(typeof(ConnectPage)); * //FrameRight.Navigate(typeof(JavascriptPage)); * btnConnect.Visibility = Visibility.Collapsed; * }*/ _vmBinder = vmBinder.GetInstance(); // _vmBinder.PageWatchApp = true; Connector.PebbleConnector _pc = Connector.PebbleConnector.GetInstance(); _pc.WatchItems.WatchItemListChanged += _vmBinder.WatchFaces.WatchItemListChanged; _pc.WatchItems.WatchItemListChanged += _vmBinder.WatchApps.WatchItemListChanged; _pc.WatchItems.Load(); DataContext = _vmBinder; InitialiseStore(); }
private void btnTennis_Click(object sender, RoutedEventArgs e) { FrameLeft.Navigate(typeof(TennisApp)); MySplitView.IsPaneOpen = false; }
private void btnConnect_Click(object sender, RoutedEventArgs e) { FrameLeft.Navigate(typeof(ConnectPage)); MySplitView.IsPaneOpen = false; }
private void btnPebbleStore_Click(object sender, RoutedEventArgs e) { FrameLeft.Navigate(typeof(WatchAppsStore)); MySplitView.IsPaneOpen = false; }