MapControlDataHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides events that indicate the user has clicked on a business location or transit feature.
Note
This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.
public ref class MapControlDataHelper sealed : DependencyObject
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.Controls.Maps.IMapControlDataHelperFactory, 131072, "Windows.Services.Maps.LocalSearchContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Maps.LocalSearchContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapControlDataHelper final : DependencyObject
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.Controls.Maps.IMapControlDataHelperFactory), 131072, "Windows.Services.Maps.LocalSearchContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Maps.LocalSearchContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MapControlDataHelper : DependencyObject
Public NotInheritable Class MapControlDataHelper
Inherits DependencyObject
- Inheritance
- Attributes
Windows requirements
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10586.0)
Windows Mobile Extension SDK (introduced in 10.0.10586.0) |
API contract |
Windows.Services.Maps.LocalSearchContract (introduced in v2.0)
|
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | BusinessLandmarkPointerEntered |
1607 | 14393 | BusinessLandmarkPointerExited |
1607 | 14393 | TransitFeaturePointerEntered |
1607 | 14393 | TransitFeaturePointerExited |
1709 | 16299 | CreateMapControl |
Constructors
MapControlDataHelper(MapControl) |
Creates an instance of the MapControlDataHelper class for the specified MapControl. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
Properties
Dispatcher |
Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread. (Inherited from DependencyObject) |
Methods
ClearValue(DependencyProperty) |
Clears the local value of a dependency property. (Inherited from DependencyObject) |
CreateMapControl(Boolean) |
Creates a MapControl in raster-mode. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
GetAnimationBaseValue(DependencyProperty) |
Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject) |
GetValue(DependencyProperty) |
Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject) |
ReadLocalValue(DependencyProperty) |
Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject) |
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback) |
Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance. (Inherited from DependencyObject) |
SetValue(DependencyProperty, Object) |
Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject) |
UnregisterPropertyChangedCallback(DependencyProperty, Int64) |
Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback. (Inherited from DependencyObject) |
Events
BusinessLandmarkClick |
Occurs when the user taps a business location or clicks on it with the left mouse button. An instance of MapControlBusinessLandmarkClickEventArgs provides data for this event. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
BusinessLandmarkPointerEntered |
Indicates the pointer entered a business landmark. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
BusinessLandmarkPointerExited |
Indicates the pointer exited the business landmark. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
BusinessLandmarkRightTapped |
Occurs when the user presses-and-holds a business location or clicks on it with the right mouse button. An instance of MapControlBusinessLandmarkRightTappedEventArgs provides data for this event. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
TransitFeatureClick |
Occurs when the user taps a transit feature or clicks on it with the left mouse button. An instance of MapControlTransitFeatureClickEventArgs provides data for this event. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
TransitFeaturePointerEntered |
Indicates the pointer entered the transit feature. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
TransitFeaturePointerExited |
Indicates the pointer exited the transit feature. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |
TransitFeatureRightTapped |
Occurs when the user presses-and-holds a transit feature or clicks on it with the right mouse button. An instance of MapControlTransitFeatureRightTappedEventArgs provides data for this event. Note This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative. |