Style Class |
Namespace: Windows.UI.Xaml
[ContentPropertyAttribute("Setters")] public sealed class Style : DependencyObject
The Style type exposes the following members.
Name | Description | |
---|---|---|
Style |
Initializes a new instance of the Style class, with no initial TargetType and an empty Setters collection.
| |
Style(Type) |
Initializes a new instance of the Style class, with an initial TargetType and an empty Setters collection.
|
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Returns the current effective value of a dependency property from a DependencyObject.
(Inherited from DependencyObject.) | |
GetVisualStateValue | (Inherited from DependencyObject.) | |
ReadLocalValue |
Returns the local value of a dependency property, if a local value is set.
(Inherited from DependencyObject.) | |
Seal |
Locks the style so that the TargetType property or any Setter in the Setters collection cannot be changed.
| |
SetBinding |
Attaches a binding to a FrameworkElement, using the provided binding object.
(Inherited from DependencyObject.) | |
SetInheritedValue |
Sets the inherited value of a dependency property on a DependencyObject. Do not use this method.
(Inherited from DependencyObject.) | |
SetLocalValue |
Sets the local value of a dependency property on a DependencyObject while not overriding a hypothetical Binding (example: when the user writes in a TextBox with a two way Binding on its Text property).
(Inherited from DependencyObject.) | |
SetValue |
Sets the local value of a dependency property on a DependencyObject.
(Inherited from DependencyObject.) | |
SetVisualStateValue | (Inherited from DependencyObject.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
BasedOnProperty | ||
IsSealedProperty |
Identifies the IsSealed dependency property.
| |
SettersProperty |
Identifies the Setters dependency property.
| |
TargetTypeProperty |
Identifies the Setters dependency property.
|
Name | Description | |
---|---|---|
BasedOn |
Gets or sets a defined style that is the basis of the current style.
Returns a defined style that is the basis of the current style. The default value is null.
| |
Dispatcher |
Gets the CoreDispatcher that this object is associated with.
(Inherited from DependencyObject.) | |
IsSealed |
Gets a value that indicates whether the style is read-only and cannot be changed.
Returns true if the style is read-only; otherwise, false.
| |
Setters |
Gets a collection of Setter objects.
Returns a collection of Setter objects. The default is an empty collection.
| |
TargetType |
Gets or sets the type for which the style is intended.
Returns the type of object to which the style is applied.
|