FrameworkTemplate FrameworkTemplate FrameworkTemplate FrameworkTemplate Class

Definition

Enables the instantiation of a tree of FrameworkElement and/or FrameworkContentElement objects.

public ref class FrameworkTemplate abstract : System::Windows::Threading::DispatcherObject, System::Windows::ISealable, 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.ISealable, System.Windows.Markup.INameScope, System.Windows.Markup.IQueryAmbient
type FrameworkTemplate = class
    inherit DispatcherObject
    interface INameScope
    interface ISealable
    interface IQueryAmbient
Public MustInherit Class FrameworkTemplate
Inherits DispatcherObject
Implements INameScope, IQueryAmbient, ISealable
Inheritance
FrameworkTemplateFrameworkTemplateFrameworkTemplateFrameworkTemplate
Derived
Attributes
Implements
System.Windows.ISealableSystem.Windows.ISealableSystem.Windows.ISealableSystem.Windows.ISealable INameScopeINameScopeINameScopeINameScope IQueryAmbientIQueryAmbientIQueryAmbientIQueryAmbient

Constructors

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

Initializes a new instance of the FrameworkTemplate class.

Properties

Dispatcher Dispatcher Dispatcher Dispatcher

Gets 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

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.

Methods

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

Determines 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()

Gets 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()

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)

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()

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)

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()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Explicit Interface Implementations

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)

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()

Applies to