Class Windows11ThemeSizeHelper
Allows for switching between the normal and compact mode of the Windows11Theme theme.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class Windows11ThemeSizeHelper : DependencyObject
Constructors
Windows11ThemeSizeHelper()
Declaration
public Windows11ThemeSizeHelper()
Fields
EnableDynamicAnimationProperty
Identifies the EnableDynamicAnimation attached property. It is used by the Windows11 theme to enable dynamic animations in the ListBox and RadioButton controls.
Declaration
public static readonly DependencyProperty EnableDynamicAnimationProperty
Field Value
System.Windows.DependencyProperty
|
IsInCompactModeProperty
Identifies the IsInCompactMode dependency property.
Declaration
public static readonly DependencyProperty IsInCompactModeProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Helper
Holds the Helper singleton instance.
Declaration
public static Windows11ThemeSizeHelper Helper { get; }
Property Value
Windows11ThemeSizeHelper
|
IsInCompactMode
Gets or sets a boolean property indicating whether the Windows11Theme theme is in compact or normal mode.
Declaration
public bool IsInCompactMode { get; set; }
Property Value
System.Boolean
|
Methods
GetEnableDynamicAnimation(DependencyObject)
Gets a boolean value indicating whether dynamic animation is enabled for this element.
Declaration
public static bool GetEnableDynamicAnimation(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The target animated object. |
Returns
System.Boolean
|
Remarks
This attached property is used by the Windows11 theme to enable dynamic animations.
SetEnableDynamicAnimation(DependencyObject, Boolean)
Sets a boolean value indicating whether dynamic animation is enabled for this element.
Declaration
public static void SetEnableDynamicAnimation(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject
obj
The target animated object. |
System.Boolean
value
The new value. |
Remarks
This attached property is used by the Windows11 theme to enable dynamic animations in the ListBox and RadioButton controls.