FrameworkTemplate 類別

定義

啟用 FrameworkElement 和/或 FrameworkContentElement 物件之樹狀目錄的具現化 (Instantiation)。

public ref class FrameworkTemplate abstract : System::Windows::Threading::DispatcherObject, System::Windows::Markup::INameScope
public ref class FrameworkTemplate abstract : System::Windows::Threading::DispatcherObject, System::Windows::Markup::INameScope, System::Windows::Markup::IQueryAmbient
[System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)]
[System.Windows.Markup.ContentProperty("VisualTree")]
public abstract class FrameworkTemplate : System.Windows.Threading.DispatcherObject, System.Windows.Markup.INameScope
[System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)]
[System.Windows.Markup.ContentProperty("VisualTree")]
public abstract class FrameworkTemplate : System.Windows.Threading.DispatcherObject, System.Windows.Markup.INameScope, System.Windows.Markup.IQueryAmbient
[<System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)>]
[<System.Windows.Markup.ContentProperty("VisualTree")>]
type FrameworkTemplate = class
    inherit DispatcherObject
    interface INameScope
[<System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)>]
[<System.Windows.Markup.ContentProperty("VisualTree")>]
type FrameworkTemplate = class
    inherit DispatcherObject
    interface INameScope
    interface IQueryAmbient
Public MustInherit Class FrameworkTemplate
Inherits DispatcherObject
Implements INameScope
Public MustInherit Class FrameworkTemplate
Inherits DispatcherObject
Implements INameScope, IQueryAmbient
繼承
FrameworkTemplate
衍生
屬性
實作

建構函式

FrameworkTemplate()

初始化 FrameworkTemplate 類別的新執行個體。

屬性

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObject

(繼承來源 DispatcherObject)
HasContent

取得值,指出這個樣板是否有最佳化內容。

IsSealed

取得值,這個值表示這個物件是否處於不變的狀態,以便無法對其進行變更。

Resources

取得或設定可在這個樣板的範圍內使用的資源集合。

Template

當樣板為已定義或由寫入器套用時,取得或設定記錄或播放該樣板之 XAML 節點的物件之參考。

VisualTree

取得或設定樣板的根節點。

方法

CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObject

(繼承來源 DispatcherObject)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
FindName(String, FrameworkElement)

尋找與這個樣板內定義之指定名稱相關聯的項目。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
LoadContent()

載入當做物件執行個體的樣板內容,並傳回該內容的根項目。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
RegisterName(String, Object)

將新的「名稱/物件」組註冊到目前的名稱範圍中。

Seal()

鎖定樣板,以便無法對其進行變更。

ShouldSerializeResources(XamlDesignerSerializationManager)

傳回值,這個值表示在這個類別的執行個體上,序列化處理是否應該將 Resources 屬性的值序列化。

ShouldSerializeVisualTree()

傳回值,這個值表示在這個類別的執行個體上,序列化處理是否應該將 VisualTree 屬性的值序列化。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
UnregisterName(String)

從 XAML 名稱範圍移除名稱/物件對應。

ValidateTemplatedParent(FrameworkElement)

在衍生類別中覆寫時,提供這個樣板套用到的項目之規則。

VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。

(繼承來源 DispatcherObject)

明確介面實作

INameScope.FindName(String)

傳回具有所提供之識別名稱的物件。

IQueryAmbient.IsAmbientPropertyAvailable(String)

查詢指定的環境屬性 (Ambient Property) 是否可用於目前的範圍。

適用於