public Charts() { this.InitializeComponent(); Demands = new ObservableCollection<TimeTable>(); VisualStateManager.GoToState(this, "Landscape", true); transfer = new timerToChartsTransfer(); DisplayInformation.AutoRotationPreferences = DisplayOrientations.None; }
private void Charts_Click(object sender, RoutedEventArgs e) { Debug.WriteLine("Charts clicked"); timerToChartsTransfer transfer = new timerToChartsTransfer(); transfer.activity_pos = activity_pos; transfer.trackact = new RootObjectTrackAct(); transfer.trackact = rtrackact; Frame rootFrame = Window.Current.Content as Frame; rootFrame.Navigate(typeof(Charts), transfer); }