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