ClassRadControl
Defines the base class for all Telerik-specific controls. Encapsulates common routines and properties.
Definition
Namespace:Telerik.UI.Xaml.Controls
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public abstract class RadControl : Control
Inheritance: objectRadControl
Derived Classes:
Constructors
RadControl()
Initializes a new instance of the RadControl class.
Declaration
protected RadControl()
Properties
CurrentVisualState
Gets the current visual state of the control.
IsLoading
Gets a value indicating whether the control is currently in a process of being loaded on the visual tree. This flag indicates that currently the LoadCore routine is executed and the control is still not completely loaded.
IsTemplateApplied
Gets a value indicating whether the OnApplyTemplate() method and the ApplyTemplateCore() routine is passed.
IsUnloaded
Gets a value indicating whether the Unloaded event has been received.
WasUnloaded
Gets a value indicating whether the control has been unloaded from the visual tree.
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.
ArrangeOverride(Size)
Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
Size
The final area within the parent that this object should use to arrange itself and its children.
Returns
Size
The actual size that is used after the element is arranged in layout.
BeginVisualStateUpdate()
Locks any visual state update. Useful when performing batch operations.
Declaration
protected void BeginVisualStateUpdate()
CanUpdateVisualState()
Determines whether the current visual state may be updated.
ComposeVisualStateName()
Builds the current visual state for this instance.
EndVisualStateUpdate(bool, bool)
Resumes visual state update and optionally re-evaluates the current visual state.
LoadCore()
Called within the handler of the event. Allows inheritors to provide their specific logic.
Declaration
protected virtual void LoadCore()
MeasureOverride(Size)
Called in the measure layout pass to determine the desired size.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
The available size that was given by the layout system.
Returns
Size
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
Declaration
protected override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnIsEnabledChanged(bool, bool)
Called when the IsEnabled property has changed.
OnLoaded()
Called within the handler of the event. Allows inheritors to provide their specific logic after the control has been successfully Loaded.
Declaration
protected virtual void OnLoaded()
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected virtual void OnTemplateApplied()
SetVisualState(string, bool)
Applies the specified visual state as current.
UnapplyTemplateCore()
Removes the current control template. Occurs when a template has already been applied and a new one is applied.
Declaration
protected virtual void UnapplyTemplateCore()
UnloadCore()
Called within the handler of the event. Allows inheritors to provide their specific logic.
Declaration
protected virtual void UnloadCore()
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.