C# Класс ESRI.ArcGIS.Client.Toolkit.ScaleLine

Наследование: System.Windows.Controls.Control, INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MapProperty System.Windows.DependencyProperty
MapUnitProperty System.Windows.DependencyProperty
TargetWidthProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call M:System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application.

Приватные методы

Метод Описание
GetBestEstimateOfValue ( double resolution, ScaleLineUnit displayUnit, ScaleLineUnit &unit, double &outResolution ) : double
GetResolutionForGeographic ( MapPoint center, double resolution ) : double

Calculates horizontal scale at center of extent for geographic / Plate Carrée projection. Horizontal scale is 0 at the poles.

InitializeMapUnit ( ) : void

Try to initialize the map units

Map_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnMapPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMapPropertyChanged ( Map oldMap, Map newMap ) : void
OnMapUnitPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnPropertyChanged ( string propertyName ) : void
OnTargetWidthPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RefreshScaleline ( ) : void

Refreshes the scaleline when the map extent changes.

RoundToSignificant ( double value, double resolution ) : double

Rounds to a value to the significant number of digits.

ScaleLine ( ) : System

Static initialization for the ScaleLine control.

SetDesignValues ( ) : void

Sets the design values.

map_ExtentChanged ( object sender, ExtentEventArgs args ) : void

Handles the ExtentChanged and ExtentChanging event of the map control.

Описание методов

OnApplyTemplate() публичный Метод

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call M:System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application.
public OnApplyTemplate ( ) : void
Результат void

Описание свойств

MapProperty публичное статическое свойство

Identifies the Map dependency property.
public static DependencyProperty,System.Windows MapProperty
Результат System.Windows.DependencyProperty

MapUnitProperty публичное статическое свойство

Identifies the MapUnit dependency property.
public static DependencyProperty,System.Windows MapUnitProperty
Результат System.Windows.DependencyProperty

TargetWidthProperty публичное статическое свойство

Identifies the TargetWidth dependency property.
public static DependencyProperty,System.Windows TargetWidthProperty
Результат System.Windows.DependencyProperty