FrameworkElementFactory Class
TOC
Collapse the table of content
Expand the table of content

FrameworkElementFactory Class

 

Supports the creation of templates.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

System.Object
  System.Windows.FrameworkElementFactory

[LocalizabilityAttribute(LocalizationCategory.NeverLocalize)]
public class FrameworkElementFactory

NameDescription
System_CAPS_pubmethodFrameworkElementFactory()

Initializes a new instance of the FrameworkElementFactory class.

System_CAPS_pubmethodFrameworkElementFactory(String)

Initializes a new instance of the FrameworkElementFactory class with the specified text to produce.

System_CAPS_pubmethodFrameworkElementFactory(Type)

Initializes a new instance of the FrameworkElementFactory class with the specified Type.

System_CAPS_pubmethodFrameworkElementFactory(Type, String)

Initializes a new instance of the FrameworkElementFactory class with the specified Type and name.

NameDescription
System_CAPS_pubpropertyFirstChild

Gets the first child factory.

System_CAPS_pubpropertyIsSealed

Gets a value that indicates whether this object is in an immutable state.

System_CAPS_pubpropertyName

Gets or sets the name of a template item.

System_CAPS_pubpropertyNextSibling

Gets the next sibling factory.

System_CAPS_pubpropertyParent

Gets the parent FrameworkElementFactory.

System_CAPS_pubpropertyText

Gets or sets the text string to produce.

System_CAPS_pubpropertyType

Gets or sets the type of the objects this factory produces.

NameDescription
System_CAPS_pubmethodAddHandler(RoutedEvent, Delegate)

Adds an event handler for the given routed event to the instances created by this factory.

System_CAPS_pubmethodAddHandler(RoutedEvent, Delegate, Boolean)

Adds an event handler for the given routed event to the instances created by this factory, with the option of having the provided handler be invoked even in cases of routed events that had already been marked as handled by another element along the route.

System_CAPS_pubmethodAppendChild(FrameworkElementFactory)

Adds a child factory to this factory.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemoveHandler(RoutedEvent, Delegate)

Removes an event handler from the given routed event. This applies to the instances created by this factory.

System_CAPS_pubmethodSetBinding(DependencyProperty, BindingBase)

Sets up data binding on a property.

System_CAPS_pubmethodSetResourceReference(DependencyProperty, Object)

Set up a dynamic resource reference on a child property.

System_CAPS_pubmethodSetValue(DependencyProperty, Object)

Sets the value of a dependency property.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

This class is a deprecated way to programmatically create templates, which are subclasses of FrameworkTemplate such as ControlTemplate or DataTemplate; not all of the template functionality is available when you create a template using this class. The recommended way to programmatically create a template is to load XAML from a string or a memory stream using the Load method of the XamlReader class.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft