In This Article

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Defines the BorderMargin property.

public static readonly DependencyProperty BorderMarginProperty

CornerRadiusProperty

Defines the CornerRadius property.

public static readonly DependencyProperty CornerRadiusProperty

DisabledOpacityProperty

Defines the DisabledOpacity property.

public static readonly DependencyProperty DisabledOpacityProperty

InnerBorderThicknessProperty

Defines the InnerBorderThickness property.

public static readonly DependencyProperty InnerBorderThicknessProperty

IsActiveProperty

Defines the IsActive property.

public static readonly DependencyProperty IsActiveProperty

IsAnimationEnabledProperty

Defines the IsAnimationEnabled property.

public static readonly DependencyProperty IsAnimationEnabledProperty

IsGlassEnabledProperty

Defines the IsGlassEnabled property.

public static readonly DependencyProperty IsGlassEnabledProperty

IsMouseWheelEnabledProperty

Defines the IsMouseWheelEnabled property.

public static readonly DependencyProperty IsMouseWheelEnabledProperty

IsOverflowedProperty

Defines the IsOverflowed property.

public static readonly DependencyProperty IsOverflowedProperty

IsTransparencyModeEnabledProperty

Defines the IsTransparencyModeEnabled property.

public static readonly DependencyProperty IsTransparencyModeEnabledProperty

UseAlternateStyleProperty

Defines the UseAlternateStyle property.

public static readonly DependencyProperty UseAlternateStyleProperty

UseBackgroundStatesProperty

Defines the UseBackgroundStates property.

public static readonly DependencyProperty UseBackgroundStatesProperty

UseBorderStatesProperty

Defines the UseBorderStates property.

public static readonly DependencyProperty UseBorderStatesProperty

UserInterfaceDensityProperty

Defines the UserInterfaceDensity property.

public static readonly DependencyProperty UserInterfaceDensityProperty

ZoomLevelProperty

Defines the ZoomLevel property.

public static readonly DependencyProperty ZoomLevelProperty

Inherited Members