ThemeProperties Class
Provides theme-related attached properties for controls.
public static class ThemeProperties
- Inheritance:
- object object
Methods
GetCopyClassesFilter(StyledElement)
The get accessor for the attached CopyClassesFilterProperty.
public static string GetCopyClassesFilter(StyledElement obj)
| Parameter | Type | Description |
|---|---|---|
| obj | StyledElement | The object to examine. |
Returns
- string:
The value of the attached property.
GetCopyClassesFrom(StyledElement)
The get accessor for the attached CopyClassesFromProperty.
public static StyledElement GetCopyClassesFrom(StyledElement obj)
| Parameter | Type | Description |
|---|---|---|
| obj | StyledElement | The object to examine. |
Returns
- StyledElement:
The value of the attached property.
GetIsActive(Control)
The get accessor for the attached IsActiveProperty.
public static bool GetIsActive(Control obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to examine. |
Returns
- bool:
The value of the attached property.
GetIsAnimationEnabled(Animatable)
The get accessor for the attached IsAnimationEnabledProperty.
public static bool GetIsAnimationEnabled(Animatable obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Animatable | The object to examine. |
Returns
- bool:
The value of the attached property.
GetIsOverflowed(Control)
The get accessor for the attached IsOverflowedProperty.
public static bool GetIsOverflowed(Control obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to examine. |
Returns
- bool:
The value of the attached property.
GetScale(Control)
The get accessor for the attached ScaleProperty.
public static double GetScale(Control obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to examine. |
Returns
- double:
The value of the attached property.
GetScrollBarHasLineButtons(Control)
The get accessor for the attached ScrollBarHasLineButtonsProperty.
public static bool GetScrollBarHasLineButtons(Control obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to examine. |
Returns
- bool:
The value of the attached property.
GetSpinnerHasHorizontalOrientation(Control)
The get accessor for the attached SpinnerHasHorizontalOrientationProperty.
public static bool GetSpinnerHasHorizontalOrientation(Control obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to examine. |
Returns
- bool:
The value of the attached property.
GetToggleSwitchHasFarAffinity(Control)
The get accessor for the attached ToggleSwitchHasFarAffinityProperty.
public static bool GetToggleSwitchHasFarAffinity(Control obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to examine. |
Returns
- bool:
The value of the attached property.
SetCopyClassesFilter(StyledElement, string)
The set accessor for the attached CopyClassesFilterProperty.
public static void SetCopyClassesFilter(StyledElement obj, string value)
| Parameter | Type | Description |
|---|---|---|
| obj | StyledElement | The object to update. |
| value | string | The value to set. |
SetCopyClassesFrom(StyledElement, StyledElement)
The set accessor for the attached CopyClassesFromProperty.
public static void SetCopyClassesFrom(StyledElement obj, StyledElement value)
| Parameter | Type | Description |
|---|---|---|
| obj | StyledElement | The object to update. |
| value | StyledElement | The value to set. |
SetIsActive(Control, bool)
The set accessor for the attached IsActiveProperty.
public static void SetIsActive(Control obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to update. |
| value | bool | The value to set. |
SetIsAnimationEnabled(Animatable, bool)
The set accessor for the attached IsAnimationEnabledProperty.
public static void SetIsAnimationEnabled(Animatable obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | Animatable | The object to update. |
| value | bool | The value to set. |
SetIsOverflowed(Control, bool)
The set accessor for the attached IsOverflowedProperty.
public static void SetIsOverflowed(Control obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to update. |
| value | bool | The value to set. |
SetScale(Control, double)
The set accessor for the attached ScaleProperty.
public static void SetScale(Control obj, double value)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to update. |
| value | double | The value to set. |
SetScrollBarHasLineButtons(Control, bool)
The set accessor for the attached ScrollBarHasLineButtonsProperty.
public static void SetScrollBarHasLineButtons(Control obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to update. |
| value | bool | The value to set. |
SetSpinnerHasHorizontalOrientation(Control, bool)
The set accessor for the attached SpinnerHasHorizontalOrientationProperty.
public static void SetSpinnerHasHorizontalOrientation(Control obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to update. |
| value | bool | The value to set. |
SetToggleSwitchHasFarAffinity(Control, bool)
The set accessor for the attached ToggleSwitchHasFarAffinityProperty.
public static void SetToggleSwitchHasFarAffinity(Control obj, bool value)
| Parameter | Type | Description |
|---|---|---|
| obj | Control | The object to update. |
| value | bool | The value to set. |
Fields
CopyClassesFilterProperty
Defines the CopyClassesFilter attached property.
public static readonly AttachedProperty<string> CopyClassesFilterProperty
CopyClassesFromProperty
Defines the CopyClassesFrom attached property.
public static readonly AttachedProperty<StyledElement> CopyClassesFromProperty
IsActiveProperty
Defines the IsActive attached property.
public static readonly AttachedProperty<bool> IsActiveProperty
IsAnimationEnabledProperty
Defines the IsAnimationEnabled attached property.
public static readonly AttachedProperty<bool> IsAnimationEnabledProperty
IsOverflowedProperty
Defines the IsOverflowed attached property.
public static readonly AttachedProperty<bool> IsOverflowedProperty
ScaleProperty
Defines the Scale attached property.
public static readonly AttachedProperty<double> ScaleProperty
ScrollBarHasLineButtonsProperty
Defines the ScrollBarHasLineButtons attached property.
public static readonly AttachedProperty<bool> ScrollBarHasLineButtonsProperty
SpinnerHasHorizontalOrientationProperty
Defines the SpinnerHasHorizontalOrientation attached property.
public static readonly AttachedProperty<bool> SpinnerHasHorizontalOrientationProperty
ToggleSwitchHasFarAffinityProperty
Defines the ToggleSwitchHasFarAffinity attached property.
public static readonly AttachedProperty<bool> ToggleSwitchHasFarAffinityProperty