ThemeProperties Class
Provides attached properties for use in themes.
public static class ThemeProperties
- Inheritance:
- object object
Methods
GetBorderMargin(DependencyObject)
Gets the value of the BorderMargin attached property for the specified object.
public static Thickness GetBorderMargin(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- Thickness:
The object's value.
GetCornerRadius(DependencyObject)
Gets the value of the CornerRadius attached property for the specified object.
public static CornerRadius GetCornerRadius(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- CornerRadius:
The object's value.
GetDisabledOpacity(DependencyObject)
Gets the value of the DisabledOpacity attached property for the specified object.
public static double GetDisabledOpacity(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- double:
The object's value.
GetInnerBorderThickness(DependencyObject)
Gets the value of the InnerBorderThickness attached property for the specified object.
public static Thickness GetInnerBorderThickness(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- Thickness:
The object's value.
GetIsActive(DependencyObject)
Gets the value of the IsActive attached property for the specified object.
public static bool GetIsActive(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetIsAnimationEnabled(DependencyObject)
Gets the value of the IsAnimationEnabled attached property for the specified object.
public static bool GetIsAnimationEnabled(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetIsGlassEnabled(DependencyObject)
Gets the value of the IsGlassEnabled attached property for the specified object.
public static bool GetIsGlassEnabled(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetIsMouseWheelEnabled(DependencyObject)
Gets the value of the IsMouseWheelEnabled attached property for the specified object.
public static bool GetIsMouseWheelEnabled(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetIsOverflowed(DependencyObject)
Gets the value of the IsOverflowed attached property for the specified object.
public static bool GetIsOverflowed(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetIsTransparencyModeEnabled(DependencyObject)
Gets the value of the IsTransparencyModeEnabled attached property for the specified object.
public static bool GetIsTransparencyModeEnabled(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetUseAlternateStyle(DependencyObject)
Gets the value of the UseAlternateStyle attached property for the specified object.
public static bool GetUseAlternateStyle(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetUseBackgroundStates(DependencyObject)
Gets the value of the UseBackgroundStates attached property for the specified object.
public static bool GetUseBackgroundStates(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetUseBorderStates(DependencyObject)
Gets the value of the UseBorderStates attached property for the specified object.
public static bool GetUseBorderStates(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- bool:
The object's value.
GetUserInterfaceDensity(DependencyObject)
Gets the value of the UserInterfaceDensity attached property for the specified object.
public static UserInterfaceDensity GetUserInterfaceDensity(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- UserInterfaceDensity:
The object's value.
GetZoomLevel(DependencyObject)
Gets the value of the ZoomLevel attached property for the specified object.
public static double GetZoomLevel(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
- double:
The object's value.
SetBorderMargin(DependencyObject, Thickness)
Sets the value of the BorderMargin attached property to the specified object.
public static void SetBorderMargin(DependencyObject obj, Thickness value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | Thickness | The value to set. |
SetCornerRadius(DependencyObject, CornerRadius)
Sets the value of the CornerRadius attached property to the specified object.
public static void SetCornerRadius(DependencyObject obj, CornerRadius value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | CornerRadius | The value to set. |
SetDisabledOpacity(DependencyObject, double)
Sets the value of the DisabledOpacity attached property to the specified object.
public static void SetDisabledOpacity(DependencyObject obj, double value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | double | The value to set. |
SetInnerBorderThickness(DependencyObject, Thickness)
Sets the value of the InnerBorderThickness attached property to the specified object.
public static void SetInnerBorderThickness(DependencyObject obj, Thickness value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | Thickness | The value to set. |
SetIsActive(DependencyObject, bool)
Sets the value of the IsActive attached property to the specified object.
public static void SetIsActive(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetIsAnimationEnabled(DependencyObject, bool)
Sets the value of the IsAnimationEnabled attached property to the specified object.
public static void SetIsAnimationEnabled(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetIsGlassEnabled(DependencyObject, bool)
Sets the value of the IsGlassEnabled attached property to the specified object.
public static void SetIsGlassEnabled(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetIsMouseWheelEnabled(DependencyObject, bool)
Sets the value of the IsMouseWheelEnabled attached property to the specified object.
public static void SetIsMouseWheelEnabled(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetIsOverflowed(DependencyObject, bool)
Sets the value of the IsOverflowed attached property to the specified object.
public static void SetIsOverflowed(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetIsTransparencyModeEnabled(DependencyObject, bool)
Sets the value of the IsTransparencyModeEnabled attached property to the specified object.
public static void SetIsTransparencyModeEnabled(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetUseAlternateStyle(DependencyObject, bool)
Sets the value of the UseAlternateStyle attached property to the specified object.
public static void SetUseAlternateStyle(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetUseBackgroundStates(DependencyObject, bool)
Sets the value of the UseBackgroundStates attached property to the specified object.
public static void SetUseBackgroundStates(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetUseBorderStates(DependencyObject, bool)
Sets the value of the UseBorderStates attached property to the specified object.
public static void SetUseBorderStates(DependencyObject obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | bool | The value to set. |
SetUserInterfaceDensity(DependencyObject, UserInterfaceDensity)
Sets the value of the UserInterfaceDensity attached property to the specified object.
public static void SetUserInterfaceDensity(DependencyObject obj, UserInterfaceDensity value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | UserInterfaceDensity | The value to set. |
SetZoomLevel(DependencyObject, double)
Sets the value of the ZoomLevel attached property to the specified object.
public static void SetZoomLevel(DependencyObject obj, double value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | double | The value to set. |
Fields
BorderMarginProperty
Identifies the BorderMargin dependency property. This field is read-only.
public static readonly DependencyProperty BorderMarginProperty
CornerRadiusProperty
Identifies the CornerRadius dependency property. This field is read-only.
public static readonly DependencyProperty CornerRadiusProperty
DisabledOpacityProperty
Identifies the DisabledOpacity dependency property. This field is read-only.
public static readonly DependencyProperty DisabledOpacityProperty
InnerBorderThicknessProperty
Identifies the InnerBorderThickness dependency property. This field is read-only.
public static readonly DependencyProperty InnerBorderThicknessProperty
IsActiveProperty
Identifies the IsActive dependency property. This field is read-only.
public static readonly DependencyProperty IsActiveProperty
IsAnimationEnabledProperty
Identifies the IsAnimationEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsAnimationEnabledProperty
IsGlassEnabledProperty
Identifies the IsGlassEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsGlassEnabledProperty
IsMouseWheelEnabledProperty
Identifies the IsMouseWheelEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsMouseWheelEnabledProperty
IsOverflowedProperty
Identifies the IsOverflowed dependency property. This field is read-only.
public static readonly DependencyProperty IsOverflowedProperty
IsTransparencyModeEnabledProperty
Identifies the IsTransparencyModeEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsTransparencyModeEnabledProperty
UseAlternateStyleProperty
Identifies the UseAlternateStyle dependency property. This field is read-only.
public static readonly DependencyProperty UseAlternateStyleProperty
UseBackgroundStatesProperty
Identifies the UseBackgroundStates dependency property. This field is read-only.
public static readonly DependencyProperty UseBackgroundStatesProperty
UseBorderStatesProperty
Identifies the UseBorderStates dependency property. This field is read-only.
public static readonly DependencyProperty UseBorderStatesProperty
UserInterfaceDensityProperty
Identifies the UserInterfaceDensity dependency property. This field is read-only.
public static readonly DependencyProperty UserInterfaceDensityProperty
ZoomLevelProperty
Identifies the ZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty ZoomLevelProperty