This documentation is archived and is not being maintained.

Style Members

Enables the sharing of properties, resources, and event handlers between instances of a type.

The Style type exposes the following members.

  NameDescription
Public method Style Overloaded. Initializes a new instance of the Style class.
Top

  NameDescription
Public method CheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for this Style. (Overrides Object.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RegisterName Registers a new name-object pair in the current namescope.
Public method Seal Locks this style and all factories and triggers so they cannot be changed.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UnregisterName Removes a name-object mapping from the namescope.
Public method VerifyAccess Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top

  NameDescription
Public property BasedOn Gets or sets a defined style that is the basis of the current style.
Public property Dispatcher Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public property IsSealed Gets a value that indicates whether the style is read-only and cannot be changed.
Public property Resources Gets or sets the collection of resources that can be used within the scope of this style.
Public property Setters Gets a collection of Setter and EventSetter objects.
Public property TargetType Gets or sets the type for which this style is intended.
Public property Triggers Gets a collection of TriggerBase objects that apply property values based on specified conditions.
Top

  NameDescription
Explicit interface implemetation Private method IAddChild.AddChild This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method IAddChild.AddText This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method INameScope.FindName This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top
Show: