Element Factory Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Supports the creation of templates.
public ref class FrameworkElementFactory
[System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)] public class FrameworkElementFactory
[<System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)>] type FrameworkElementFactory = class
Public Class FrameworkElementFactory
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.
Initializes a new instance of the FrameworkElementFactory class.
Initializes a new instance of the FrameworkElementFactory class with the specified text to produce.
Gets the first child factory.
Gets a value that indicates whether this object is in an immutable state.
Gets or sets the name of a template item.
Gets the next sibling factory.
Gets the parent FrameworkElementFactory.
Gets or sets the text string to produce.
Gets or sets the type of the objects this factory produces.
Adds an event handler for the given routed event to the instances created by this factory.
|AddHandler(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.
Adds a child factory to this factory.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Removes an event handler from the given routed event. This applies to the instances created by this factory.
Sets up data binding on a property.
Set up a dynamic resource reference on a child property.
Sets the value of a dependency property.
Returns a string that represents the current object.(Inherited from Object)