FrameworkTemplate FrameworkTemplate FrameworkTemplate FrameworkTemplate Class

定義

啟用 FrameworkElement 和/或 FrameworkContentElement 物件之樹狀目錄的具現化 (Instantiation)。Enables the instantiation of a tree of FrameworkElement and/or FrameworkContentElement objects.

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.Markup.IQueryAmbient
type FrameworkTemplate = class
    inherit DispatcherObject
    interface INameScope
    interface IQueryAmbient
Public MustInherit Class FrameworkTemplate
Inherits DispatcherObject
Implements INameScope, IQueryAmbient
繼承
FrameworkTemplateFrameworkTemplateFrameworkTemplateFrameworkTemplate
衍生
屬性
實作

建構函式

FrameworkTemplate() FrameworkTemplate() FrameworkTemplate() FrameworkTemplate()

初始化 FrameworkTemplate 類別的新執行個體。Initializes a new instance of the FrameworkTemplate class.

屬性

Dispatcher Dispatcher Dispatcher Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
HasContent HasContent HasContent HasContent

取得值,指出這個樣板是否有最佳化內容。Gets a value that indicates whether this template has optimized content.

IsSealed IsSealed IsSealed IsSealed

取得值,這個值表示這個物件是否處於不變的狀態,以便無法對其進行變更。Gets a value that indicates whether this object is in an immutable state so it cannot be changed.

Resources Resources Resources Resources

取得或設定可在這個樣板的範圍內使用的資源集合。Gets or sets the collection of resources that can be used within the scope of this template.

Template Template Template Template

當樣板為已定義或由寫入器套用時,取得或設定記錄或播放該樣板之 XAML 節點的物件之參考。Gets or sets a reference to the object that records or plays the XAML nodes for the template when the template is defined or applied by a writer.

VisualTree VisualTree VisualTree VisualTree

取得或設定樣板的根節點。Gets or sets the root node of the template.

方法

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindName(String, FrameworkElement) FindName(String, FrameworkElement) FindName(String, FrameworkElement) FindName(String, FrameworkElement)

尋找與這個主題內定義之指定名稱關聯的項目。Finds the element associated with the specified name defined within this template.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
LoadContent() LoadContent() LoadContent() LoadContent()

載入當做物件執行個體的樣板內容,並傳回該內容的根項目。Loads the content of the template as an instance of an object and returns the root element of the content.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
RegisterName(String, Object) RegisterName(String, Object) RegisterName(String, Object) RegisterName(String, Object)

將新的「名稱/物件」組註冊到目前的名稱範圍中。Registers a new name/object pair into the current name scope.

Seal() Seal() Seal() Seal()

鎖定樣板,以便無法對其進行變更。Locks the template so it cannot be changed.

ShouldSerializeResources(XamlDesignerSerializationManager) ShouldSerializeResources(XamlDesignerSerializationManager) ShouldSerializeResources(XamlDesignerSerializationManager) ShouldSerializeResources(XamlDesignerSerializationManager)

傳回值,這個值表示在這個類別的執行個體上,序列化處理是否應該將 Resources 屬性的值序列化。Returns a value that indicates whether serialization processes should serialize the value of the Resources property on instances of this class.

ShouldSerializeVisualTree() ShouldSerializeVisualTree() ShouldSerializeVisualTree() ShouldSerializeVisualTree()

傳回值,這個值表示在這個類別的執行個體上,序列化處理是否應該將 VisualTree 屬性的值序列化。Returns a value that indicates whether serialization processes should serialize the value of the VisualTree property on instances of this class.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
UnregisterName(String) UnregisterName(String) UnregisterName(String) UnregisterName(String)

從 XAML 名稱範圍移除名稱/物件對應。Removes a name/object mapping from the XAML namescope.

ValidateTemplatedParent(FrameworkElement) ValidateTemplatedParent(FrameworkElement) ValidateTemplatedParent(FrameworkElement) ValidateTemplatedParent(FrameworkElement)

在衍生類別中覆寫時,提供這個樣板套用到的項目之規則。When overridden in a derived class, supplies rules for the element this template is applied to.

VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

明確介面實作

INameScope.FindName(String) INameScope.FindName(String) INameScope.FindName(String) INameScope.FindName(String)

傳回具有所提供之識別名稱的物件。Returns an object that has the provided identifying name.

IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String)

查詢指定的環境屬性 (Ambient Property) 是否可用於目前的範圍。Queries whether a specified ambient property is available in the current scope.

ISealable.CanSeal ISealable.CanSeal ISealable.CanSeal ISealable.CanSeal
ISealable.IsSealed ISealable.IsSealed ISealable.IsSealed ISealable.IsSealed
ISealable.Seal() ISealable.Seal() ISealable.Seal() ISealable.Seal()

適用於