Наследование: System.Windows.Controls.Control, INotifyPropertyChanged
Пример #1
0
        private static void OnMapUnitPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ScaleLine scaleLine = d as ScaleLine;

            if (scaleLine != null)
            {
                scaleLine.RefreshScaleline();
            }
        }
Пример #2
0
        private static void OnMapPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ScaleLine scaleLine = d as ScaleLine;

            if (scaleLine != null)
            {
                scaleLine.OnMapPropertyChanged(e.OldValue as Map, e.NewValue as Map);
            }
        }
Пример #3
0
        private static void OnTargetWidthPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ScaleLine scaleLine = d as ScaleLine;

            if (scaleLine != null)
            {
                scaleLine.RefreshScaleline();
                scaleLine.SetDesignValues();
            }
        }
Пример #4
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ESRI.SilverlightViewer;component/MapPage.xaml", System.UriKind.Relative));
     this.LayoutRoot             = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.myMap                  = ((ESRI.ArcGIS.Client.Map)(this.FindName("myMap")));
     this.myNavigator            = ((ESRI.SilverlightViewer.Generic.MapNavigator)(this.FindName("myNavigator")));
     this.myScaleBar             = ((ESRI.ArcGIS.Client.Toolkit.ScaleLine)(this.FindName("myScaleBar")));
     this.progressGrid           = ((System.Windows.Controls.Grid)(this.FindName("progressGrid")));
     this.myProgressBar          = ((System.Windows.Controls.ProgressBar)(this.FindName("myProgressBar")));
     this.ProgressValueTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("ProgressValueTextBlock")));
     this.WidgetsCanvas          = ((System.Windows.Controls.Canvas)(this.FindName("WidgetsCanvas")));
     this.myTaskbarWidget        = ((ESRI.SilverlightViewer.UIWidget.TaskbarWidget)(this.FindName("myTaskbarWidget")));
 }