Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Style Members

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

The following tables list the members exposed by the Style type.

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

  Name Description
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

(see also Protected Methods )
  Name Description
Public method CheckAccess  Determines whether the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode Overridden. Returns the hash code for this Style.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (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

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method System.Windows.Markup.IAddChild.AddChild This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Windows.Markup.IAddChild.AddText This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Windows.Markup.INameScope.FindName This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft