Class
DecorationItemButton

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:

cs-api-definition
public class DecorationItemButton : RadControl

Inheritance: objectRadControlDecorationItemButton

Inherited Members RadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.OnCreateAutomationPeer()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.OnApplyTemplate()RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

DecorationItemButton()

Initializes a new instance of the DecorationItemButton class.

Declaration

cs-api-definition
public DecorationItemButton()

Fields

ArrowThicknessFactorProperty

Identifies the ArrowThicknessFactor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ArrowThicknessFactorProperty

Field Value

DependencyProperty

PointerOverBackgroundBrushProperty

Identifies the PointerOverBackgroundBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PointerOverBackgroundBrushProperty

Field Value

DependencyProperty

SelectedBackgroundBrushProperty

Identifies the SelectedBackgroundBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedBackgroundBrushProperty

Field Value

DependencyProperty

SelectedPointerOverBackgroundBrushProperty

Identifies the SelectedPointerOverBackgroundBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedPointerOverBackgroundBrushProperty

Field Value

DependencyProperty

ThicknessFactorProperty

Identifies the ThicknessFactor dependency property.

Declaration

cs-api-definition
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

cs-api-definition
public double ArrowThicknessFactor { get; set; }

Property Value

double

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

xaml
<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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public double ThicknessFactor { get; set; }

Property Value

double

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

xaml
<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.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides RadControl.ApplyTemplateCore()

ComposeVisualStateName()

Builds the current visual state for this instance.

Declaration

cs-api-definition
protected override string ComposeVisualStateName()

Returns

string

Overrides RadControl.ComposeVisualStateName()

OnTemplateApplied()

Occurs when the method has been called and the template is already successfully applied.

Declaration

cs-api-definition
protected override void OnTemplateApplied()

Overrides RadControl.OnTemplateApplied()