ClassVisualStatesItemPresenter
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
VisualStatesItemPresenter()
Initializes a new instance of the VisualStatesItemPresenter class.
Declaration
public VisualStatesItemPresenter()
Fields
ArrowThicknessFactorProperty
Identifies the ArrowThicknessFactor dependency property.
Declaration
public static readonly DependencyProperty ArrowThicknessFactorProperty
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 VisualStatesItemPresenter 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.
IsTemplateApplied
Determines whether the OnApplyTemplate() method and the ApplyTemplateCore() routine is passed.
ThicknessFactor
Gets or sets the factor defining the thickness of the VisualStatesItemPresenter 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.
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.
CanUpdateVisualState()
Determines whether the current visual state may be updated.
ComposeVisualStateName()
Builds the current visual state for this instance.
ComposeVisualStateNameBase()
Builds the current visual state for this instance.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected void OnTemplateApplied()
SetVisualState(string, bool)
Applies the specified visual state as current.
UpdateVisualState(bool)
Re-evaluates the current visual state for the control and updates it if necessary.
Declaration
protected virtual void UpdateVisualState(bool animate)
Parameters
animate
True to use transitions during state update, false otherwise.