C# Класс Microsoft.Phone.Maps.Toolkit.MapChild

Represents a child of a map, which uses geographic coordinates to position itself.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
GeoCoordinateProperty System.Windows.DependencyProperty
PositionOriginProperty System.Windows.DependencyProperty

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

Метод Описание
GetPositionOrigin ( DependencyObject element ) : Point

Gets the position origin of the child.

SetGeoCoordinate ( DependencyObject element, GeoCoordinate value ) : void

Sets the geographic coordinate position of the child.

SetPositionOrigin ( DependencyObject element, Point value ) : void

Sets the position origin of the child.

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

Метод Описание
BindMapOverlayProperties ( MapOverlay mapOverlay ) : void

Method that takes care of setting the two way bindings for all the attached properties from MapOverlay to the actual UI (not the intermediary presenter).

Even though the MapOverlay is supposed to be the target, it is the source due to issues with setting a two way binding where the source is an attached property

BindMapOverlayProperties ( MapOverlay mapOverlay, DependencyObject targetObject ) : void

Method that takes care of setting the two way bindings for all the attached properties from MapOverlay to the actual UI (not the intermediary presenter).

Even though the MapOverlay is supposed to be the target, it is the source due to issues with setting a two way binding where the source is an attached property

BindMapOverlayProperty ( MapOverlay mapOverlay, string mapOverlayDependencyProperty, DependencyObject targetObject, DependencyProperty targetDependencyProperty ) : void

Binds two ways the map overlay to the target dependency property

ClearMapOverlayBindings ( MapOverlay mapOverlay ) : void

Clear the bindings created when the overlay was created by MapChild

ClearMapOverlayBindings ( MapOverlay mapOverlay, DependencyObject targetObject ) : void

Clear the bindings created when the overlay was created by MapChild

CreateMapOverlay ( object content, System.Windows.DataTemplate contentTemplate ) : MapOverlay

Creates a MapOverlay with the specified content and content template. It will have special setup so that later the dependency properties from MapOverlay and the attached properties from the target UI can be in a binding.

GetGeoCoordinate ( DependencyObject element ) : GeoCoordinate

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

GetPositionOrigin() публичный статический Метод

Gets the position origin of the child.
public static GetPositionOrigin ( DependencyObject element ) : Point
element System.Windows.DependencyObject The dependency object
Результат Point

SetGeoCoordinate() публичный статический Метод

Sets the geographic coordinate position of the child.
public static SetGeoCoordinate ( DependencyObject element, GeoCoordinate value ) : void
element System.Windows.DependencyObject The dependency object
value GeoCoordinate The coordinate to use to position the child
Результат void

SetPositionOrigin() публичный статический Метод

Sets the position origin of the child.
public static SetPositionOrigin ( DependencyObject element, Point value ) : void
element System.Windows.DependencyObject The dependency object
value Point The position origin of the child
Результат void

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

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

Gets or sets the child's geographic coordinate position
public static DependencyProperty,System.Windows GeoCoordinateProperty
Результат System.Windows.DependencyProperty

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

Gets or sets the child's position origin.
public static DependencyProperty,System.Windows PositionOriginProperty
Результат System.Windows.DependencyProperty