New to Telerik UI for WPFStart a free 30-day trial

Represents the custom Control implementation used to visualize the hover and selected state over RadRadialMenuItem.

Definition

Namespace:Telerik.Windows.Controls.RadialMenu

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class VisualStatesItemPresenter : Control

Inheritance: objectVisualStatesItemPresenter

Constructors

Initializes a new instance of the VisualStatesItemPresenter class.

C#
public VisualStatesItemPresenter()

Fields

Identifies the ArrowThicknessFactor dependency property.

C#
public static readonly DependencyProperty ArrowThicknessFactorProperty

ThicknessFactorProperty

DependencyProperty

Identifies the ThicknessFactor dependency property.

C#
public static readonly DependencyProperty ThicknessFactorProperty

Properties

Gets or sets the factor defining the thickness of the arrow part of the VisualStatesItemPresenter as a fraction of the size of the NavigationItemButton.

C#
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.

Determines whether the OnApplyTemplate() method and the ApplyTemplateCore() routine is passed.

C#
protected bool IsTemplateApplied { get; }

Gets or sets the factor defining the thickness of the VisualStatesItemPresenter as a fraction of the size of the NavigationItemButton.

C#
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.

Methods

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.

C#
protected bool ApplyTemplateCore()
Returns:

bool

Determines whether the current visual state may be updated.

C#
protected virtual bool CanUpdateVisualState()
Returns:

bool

Builds the current visual state for this instance.

C#
protected string ComposeVisualStateName()
Returns:

string

Builds the current visual state for this instance.

C#
protected string ComposeVisualStateNameBase()
Returns:

string

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

C#
public override void OnApplyTemplate()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

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

C#
protected void OnTemplateApplied()

Resets the theme.

C#
public void ResetTheme()

Applies the specified visual state as current.

C#
protected virtual void SetVisualState(string state, bool animate)
Parameters:statestring

The new visual state.

animatebool

True to use transitions, false otherwise.

Re-evaluates the current visual state for the control and updates it if necessary.

C#
protected virtual void UpdateVisualState(bool animate)
Parameters:animatebool

True to use transitions during state update, false otherwise.