MapElementsLayer 類別

定義

代表對應元素的集合,您可以系結資料,並獨立于其他地圖元素之外操作。

public ref class MapElementsLayer sealed : MapLayer
/// [Windows.Foundation.Metadata.Activatable(327680, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapElementsLayer final : MapLayer
[Windows.Foundation.Metadata.Activatable(327680, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MapElementsLayer : MapLayer
Public NotInheritable Class MapElementsLayer
Inherits MapLayer
繼承
Object Platform::Object IInspectable DependencyObject MapLayer MapElementsLayer
屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

建構函式

MapElementsLayer()

建立 MapElementsLayer 實例。

屬性

Dispatcher

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

(繼承來源 DependencyObject)
MapElements

取得 MapElement 物件的集合,這些物件是 MapElementsLayer的子系。

MapElementsProperty

識別 MapElements 相依性屬性。

MapTabIndex

取得或設定值,這個值會決定當使用者按下 Tab 鍵流覽這些專案時 ,MapLayer 物件接收焦點的順序。

(繼承來源 MapLayer)
Visible

取得或設定值,這個值表示 MapLayer 是否顯示在 MapControl上。

(繼承來源 MapLayer)
ZIndex

取得或設定 MapLayer的 z 索引。 具有較高 z 索引的 MapLayer 會顯示在具有較低 z 索引的 MapLayer 上方。

(繼承來源 MapLayer)

方法

ClearValue(DependencyProperty)

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

(繼承來源 DependencyObject)
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)

事件

MapContextRequested

發生于使用者已完成地圖圖層上的內容輸入手勢時,例如按一下滑鼠右鍵。

MapElementClick

發生于使用者點選或按一下已新增至MapElementsLayerMapElement時。

MapElementPointerEntered

發生于指標移至MapElementsLayerMapElement的周框區域時。

MapElementPointerExited

發生于指標移出MapElementsLayerMapElement的周框區域時。

適用於