TreeViewItemTemplateSettings 類別

定義

提供計算值,這些值可在定義TreeViewItem控制項的範本時參考為TemplatedParent來源。 不適用於一般用途。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings (Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TreeViewItemTemplateSettings : DependencyObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class TreeViewItemTemplateSettings : DependencyObject
Public Class TreeViewItemTemplateSettings
Inherits DependencyObject
繼承
Object IInspectable DependencyObject TreeViewItemTemplateSettings
屬性

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

建構函式

TreeViewItemTemplateSettings()

初始化 TreeViewItemTemplateSettings 類別的新實例。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.-ctor (Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

屬性

CollapsedGlyphVisibility

取得折迭圖像的可見度。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.CollapsedGlyphVisibility (for WinUI Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

CollapsedGlyphVisibilityProperty

識別 CollapsedGlyphVisibility 相依性屬性。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.CollapsedGlyphVisibilityProperty (for WinUI,請參閱Windows 應用程式 SDK中的Windows 應用程式 SDK命名空間) 。

Dispatcher

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

(繼承來源 DependencyObject)
DragItemsCount

取得要拖曳的專案數。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.DragItemsCount (Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

DragItemsCountProperty

識別 DragItemsCount 相依性屬性。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.DragItemsCountProperty (適用于Windows 應用程式 SDK的 WinUI,請參閱Windows 應用程式 SDK命名空間) 。

ExpandedGlyphVisibility

取得展開圖像的可見度。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.ExpandGlyphVisibility (for WinUI,請參閱Windows 應用程式 SDK中的Windows 應用程式 SDK命名空間) 。

ExpandedGlyphVisibilityProperty

識別 ExpandedGlyphVisibility 相依性屬性。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.ExpandGlyphVisibilityProperty (for WinUI Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

Indentation

取得專案縮排的數量。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.Indentation (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

IndentationProperty

識別縮排相依性屬性。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewItemTemplateSettings.IndentationProperty (for WinUI Windows 應用程式 SDK,請參閱) Windows 應用程式 SDK命名空間

方法

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)

適用於