ClassDecorationItemButton
Represents the custom Control implementation used to visualize the hover and selected state over RadialMenuItem.
Definition
Namespace:Telerik.UI.Xaml.Controls.Navigation.Menu
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class DecorationItemButton : RadControl
Inheritance: objectRadControlDecorationItemButton
Inherited Members
Constructors
DecorationItemButton()
Initializes a new instance of the DecorationItemButton class.
Declaration
public DecorationItemButton()
Fields
ArrowThicknessFactorProperty
Identifies the ArrowThicknessFactor dependency property.
Declaration
public static readonly DependencyProperty ArrowThicknessFactorProperty
Field Value
DependencyProperty
PointerOverBackgroundBrushProperty
Identifies the PointerOverBackgroundBrush dependency property.
Declaration
public static readonly DependencyProperty PointerOverBackgroundBrushProperty
Field Value
DependencyProperty
SelectedBackgroundBrushProperty
Identifies the SelectedBackgroundBrush dependency property.
Declaration
public static readonly DependencyProperty SelectedBackgroundBrushProperty
Field Value
DependencyProperty
SelectedPointerOverBackgroundBrushProperty
Identifies the SelectedPointerOverBackgroundBrush dependency property.
Declaration
public static readonly DependencyProperty SelectedPointerOverBackgroundBrushProperty
Field Value
DependencyProperty
ThicknessFactorProperty
Identifies the ThicknessFactor dependency property.
Declaration
public static readonly DependencyProperty ThicknessFactorProperty
Field Value
DependencyProperty
Properties
ArrowThicknessFactor
Gets or sets the factor defining the thickness of the arrow part of the DecorationItemButton as a fraction of the size of the NavigationItemButton.
Declaration
public double ArrowThicknessFactor { get; set; }
Property Value
The value should be between 0 and 1. If the passed value lies outside this range, it is automatically set to the nearest boundary value.
Example
<telerikPrimitives:RadRadialMenu.Resources>
<Style TargetType="telerikPrimitivesMenu:DecorationItemButton">
<Setter Property="ArrowThicknessFactor" Value="0.3"/>
</Style>
</telerikPrimitives:RadRadialMenu.Resources>
PointerOverBackgroundBrush
Gets or sets the Brush instance that defines the value in the PointerOver visual state.
Declaration
public Brush PointerOverBackgroundBrush { get; set; }
Property Value
Brush
SelectedBackgroundBrush
Gets or sets the Brush instance that defines the value in the Selected visual state.
Declaration
public Brush SelectedBackgroundBrush { get; set; }
Property Value
Brush
SelectedPointerOverBackgroundBrush
Gets or sets the Brush instance that defines the value in the SelectedPointerOver visual state.
Declaration
public Brush SelectedPointerOverBackgroundBrush { get; set; }
Property Value
Brush
ThicknessFactor
Gets or sets the factor defining the thickness of the DecorationItemButton as a fraction of the size of the NavigationItemButton.
Declaration
public double ThicknessFactor { get; set; }
Property Value
The value should be between 0 and 1. If the passed value lies outside this range, it is automatically set to the nearest boundary value.
Example
<telerikPrimitives:RadRadialMenu.Resources>
<Style TargetType="telerikPrimitivesMenu:DecorationItemButton">
<Setter Property="ThicknessFactor" Value="0.3"/>
</Style>
</telerikPrimitives:RadRadialMenu.Resources>
Methods
ApplyTemplateCore()
Called when the Framework is called. Inheritors should override this method should they have some custom template-related logic. This is done to ensure that the property is properly initialized.
ComposeVisualStateName()
Builds the current visual state for this instance.
Declaration
protected override string ComposeVisualStateName()
Returns
Overrides
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected override void OnTemplateApplied()
Overrides