C# Класс ESRI.ArcGIS.SilverlightMapApp.ScaleBar

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

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

Свойство Тип Описание
FillProperty System.Windows.DependencyProperty
MapProperty 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.

ScaleBar ( ) : System

Initializes a new instance of the ScaleBar class.

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

Метод Описание
GetBestEstimateOfValue ( double resolution, ScaleBarUnit displayUnit, ScaleBarUnit &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.

OnMapPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RefreshScalebar ( ) : void

Refreshes the scalebar when the map extent changes.

RoundToSignificant ( double value, double resolution ) : double

Rounds to a value to the significant number of digits.

getBestEstimateOfValue ( double resolution, ESRI displayUnit, ESRI &unit, double &outResolution ) : double
getResolutionForGeographic ( ESRI extent, double resolution ) : double
map_ExtentChanged ( object sender, ESRI args ) : void

Handles the ExtentChanged and ExtentChanging event of the map control.

refreshScalebar ( ) : void
roundToSignificant ( double value, double resolution ) : double

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

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

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

Initializes a new instance of the ScaleBar class.
public ScaleBar ( ) : System
Результат System

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

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

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

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

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

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

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