Exemple #1
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/gRouteTrack;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.animateMyCircle      = ((System.Windows.Media.Animation.Storyboard)(this.FindName("animateMyCircle")));
     this.MainPivot            = ((Microsoft.Phone.Controls.Pivot)(this.FindName("MainPivot")));
     this.SettingsPivotItem    = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("SettingsPivotItem")));
     this.SliderDistanceMeters = ((System.Windows.Controls.Slider)(this.FindName("SliderDistanceMeters")));
     this.UserNameTextBox      = ((System.Windows.Controls.TextBox)(this.FindName("UserNameTextBox")));
     this.PasswordBox          = ((System.Windows.Controls.PasswordBox)(this.FindName("PasswordBox")));
     this.SaveButton           = ((System.Windows.Controls.Button)(this.FindName("SaveButton")));
     this.TestImage            = ((System.Windows.Controls.Image)(this.FindName("TestImage")));
     this.myCircleStart        = ((WPStartStopControl.MainControl)(this.FindName("myCircleStart")));
     this.speedChart           = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("speedChart")));
     this.altitudeChart        = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("altitudeChart")));
     this.pointsListBox        = ((System.Windows.Controls.ListBox)(this.FindName("pointsListBox")));
     this.RoutesListBox        = ((System.Windows.Controls.ListBox)(this.FindName("RoutesListBox")));
     this.GpsBar = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("GpsBar")));
 }
Exemple #2
0
        private static void OnSetSpaceBetweenPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            MainControl myUserControl = dependencyObject as MainControl;

            myUserControl.OnSetLinePropertyChanged(e);
        }