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:
public class VisualStatesItemPresenter : Control
Inheritance: objectVisualStatesItemPresenter
Constructors
Initializes a new instance of the VisualStatesItemPresenter class.
public VisualStatesItemPresenter()
Fields
ArrowThicknessFactorProperty
DependencyProperty
Identifies the ArrowThicknessFactor dependency property.
public static readonly DependencyProperty ArrowThicknessFactorProperty
ThicknessFactorProperty
DependencyProperty
Identifies the ThicknessFactor dependency property.
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.
public double ArrowThicknessFactor { get; set; }
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.
protected bool IsTemplateApplied { get; }
Gets or sets the factor defining the thickness of the VisualStatesItemPresenter as a fraction of the size of the NavigationItemButton.
public double ThicknessFactor { get; set; }
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.
Determines whether the current visual state may be updated.
Builds the current visual state for this instance.
Builds the current visual state for this instance.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Occurs when the method has been called and the template is already successfully applied.
protected void OnTemplateApplied()
Resets the theme.
public void ResetTheme()
Re-evaluates the current visual state for the control and updates it if necessary.
protected virtual void UpdateVisualState(bool animate)
True to use transitions during state update, false otherwise.