Inheritance: 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")));
 }