MapControlDataHelper 類別

定義

提供事件,指出使用者已按一下商務位置或傳輸功能。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

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
繼承
Object Platform::Object IInspectable DependencyObject MapControlDataHelper
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.10586.0 引進)
Windows Mobile Extension SDK (已於 10.0.10586.0 引進)
API contract
Windows.Services.Maps.LocalSearchContract (已於 v2.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1607 14393 BusinessLandmarkPointerEntered
1607 14393 BusinessLandmarkPointerExited
1607 14393 TransitFeaturePointerEntered
1607 14393 TransitFeaturePointerExited
1709 16299 CreateMapControl

建構函式

MapControlDataHelper(MapControl)

為指定的MapControl建立MapControlDataHelper類別的實例。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

屬性

Dispatcher

取得與此物件相關聯的 CoreDispatcherCoreDispatcher代表可以存取 UI 執行緒上DependencyObject的功能,即使程式碼是由非 UI 執行緒起始也一樣。

(繼承來源 DependencyObject)

方法

ClearValue(DependencyProperty)

清除相依性屬性的本機值。

(繼承來源 DependencyObject)
CreateMapControl(Boolean)

在點陣模式中建立 MapControl

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

GetAnimationBaseValue(DependencyProperty)

傳回針對相依性屬性所建立的任何基底值,如果動畫未使用中,則會套用。

(繼承來源 DependencyObject)
GetValue(DependencyProperty)

DependencyObject傳回相依性屬性的目前有效值。

(繼承來源 DependencyObject)
ReadLocalValue(DependencyProperty)

如果已設定本機值,則傳回相依性屬性的本機值。

(繼承來源 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

註冊通知函式,以接聽此DependencyObject實例上特定DependencyProperty的變更。

(繼承來源 DependencyObject)
SetValue(DependencyProperty, Object)

DependencyObject上設定相依性屬性的本機值。

(繼承來源 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消先前透過呼叫 RegisterPropertyChangedCallback註冊的變更通知。

(繼承來源 DependencyObject)

事件

BusinessLandmarkClick

當使用者點選商務位置或按一下滑鼠左鍵時發生。 MapControlBusinessLandmarkClickEventArgs的實例會提供此事件的資料。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

BusinessLandmarkPointerEntered

指出輸入商務地標的指標。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

BusinessLandmarkPointerExited

表示指標結束商務地標。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

BusinessLandmarkRightTapped

當使用者按下並按住商務位置,或使用滑鼠右鍵按一下時發生。 MapControlBusinessLandmarkRightTappedEventArgs的實例會提供此事件的資料。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

TransitFeatureClick

發生于使用者點選傳輸功能或按一下滑鼠左鍵時。 MapControlTransitFeatureClickEventArgs的實例會提供此事件的資料。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

TransitFeaturePointerEntered

指出輸入傳輸功能的指標。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

TransitFeaturePointerExited

表示指標結束傳輸功能。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

TransitFeatureRightTapped

當使用者按下並保留傳輸功能,或使用滑鼠右鍵按一下它時發生。 MapControlTransitFeatureRightTappedEventArgs的實例會提供此事件的資料。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

適用於

另請參閱