C# 클래스 Microsoft.Phone.Maps.Toolkit.MapChild

Represents a child of a map, which uses geographic coordinates to position itself.
파일 보기 프로젝트 열기: Kinnara/WPToolkit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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