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::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
Inheritance
FrameworkTemplate
Derived
Attributes
Implements

Constructors

FrameworkTemplate()

Initializes a new instance of the FrameworkTemplate class.

Properties

Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
HasContent

Gets a value that indicates whether this template has optimized content.

IsSealed

Gets a value that indicates whether this object is in an immutable state so it cannot be changed.

Resources

Gets or sets the collection of resources that can be used within the scope of this 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

Gets or sets the root node of the template.

Methods

CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindName(String, FrameworkElement)

Finds the element associated with the specified name defined within this template.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadContent()

Loads the content of the template as an instance of an object and returns the root element of the content.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RegisterName(String, Object)

Registers a new name/object pair into the current name scope.

Seal()

Locks the template so it cannot be changed.

ShouldSerializeResources(XamlDesignerSerializationManager)

Returns a value that indicates whether serialization processes should serialize the value of the Resources property on instances of this class.

ShouldSerializeVisualTree()

Returns a value that indicates whether serialization processes should serialize the value of the VisualTree property on instances of this class.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
UnregisterName(String)

Removes a name/object mapping from the XAML namescope.

ValidateTemplatedParent(FrameworkElement)

When overridden in a derived class, supplies rules for the element this template is applied to.

VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Explicit Interface Implementations

INameScope.FindName(String)

Returns an object that has the provided identifying name.

IQueryAmbient.IsAmbientPropertyAvailable(String)

Queries whether a specified ambient property is available in the current scope.

Applies to