Class
RadControl

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:

cs-api-definition
public abstract class RadControl : Control

Inheritance: objectRadControl

Derived Classes: PresenterBaseTrackBallInfoControlTrackBallLineControlListViewBusyOverlayControlListViewLoadDataControlBaseListViewCurrencyControlPullToRefreshIndicatorRadListViewBarIndicatorSegmentDataAxisLabelBaseDataAxisTickBaseFastItemsControlBaseGaugeIndicatorRadBarcodeRadBulletGraphRadDataAxisBaseRadDataBarBaseRadGaugeRadSparklineBaseRadStacked100DataBarSparklineItemBaseStackedBarItemDataGridAutoDataLoadingControlDataGridBusyOverlayControlDataGridCellFlyoutControlDataGridColumnHeaderDataGridColumnReorderServicePanelDataGridContentFlyoutDataGridCurrencyControlDataGridDataOperationsControlDataGridEditRowDataGridFilterControlBaseDataGridFilteringFlyoutDataGridHeaderDataGridHoverControlDataGridLoadDataControlFlyoutHeaderControlRotatedContainerSelectionRegionBackgroundControlSelectionRegionBorderControlRadDataGridRadMaskedInputBaseRadRatingRadSegmentedControlMultipleTemplateControlDecorationItemButtonNavigationItemButtonRadialMenuItemControlRadRadialMenuFixedDocumentViewerBaseBusyIndicatorAnimationFlipControlMosaicTilePartSlideControlHubTileBaseRadLoopingListPaginationIndexLabelControlPaginationItemIndicatorRadLegendControlRadPaginationControlRadShadowRadSideDrawerRangeToolTipRangeTrackPrimitiveValidationControlRadChatRadHeaderedControl

Constructors

RadControl()

Initializes a new instance of the RadControl class.

Declaration

cs-api-definition
protected RadControl()

Properties

CurrentVisualState

Gets the current visual state of the control.

Declaration

cs-api-definition
public string CurrentVisualState { get; }

Property Value

string

IsLoaded

Gets a value indicating whether the event is handled and the LoadCore() routine is passed.

Declaration

cs-api-definition
protected bool IsLoaded { get; }

Property Value

bool

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.

Declaration

cs-api-definition
protected bool IsLoading { get; }

Property Value

bool

IsTemplateApplied

Gets a value indicating whether the OnApplyTemplate() method and the ApplyTemplateCore() routine is passed.

Declaration

cs-api-definition
protected bool IsTemplateApplied { get; }

Property Value

bool

IsUnloaded

Gets a value indicating whether the Unloaded event has been received.

Declaration

cs-api-definition
protected bool IsUnloaded { get; }

Property Value

bool

WasUnloaded

Gets a value indicating whether the control has been unloaded from the visual tree.

Declaration

cs-api-definition
protected bool WasUnloaded { get; }

Property Value

bool

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 virtual bool ApplyTemplateCore()

Returns

bool

ArrangeOverride(Size)

Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.

Declaration

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

cs-api-definition
protected void BeginVisualStateUpdate()

CanUpdateVisualState()

Determines whether the current visual state may be updated.

Declaration

cs-api-definition
protected virtual bool CanUpdateVisualState()

Returns

bool

ComposeVisualStateName()

Builds the current visual state for this instance.

Declaration

cs-api-definition
protected virtual string ComposeVisualStateName()

Returns

string

EndVisualStateUpdate(bool, bool)

Resumes visual state update and optionally re-evaluates the current visual state.

Declaration

cs-api-definition
protected void EndVisualStateUpdate(bool update, bool animate)

Parameters

update

bool

True to re-evaluate the current visual state, false otherwise.

animate

bool

True to use animations when updating visual state, false otherwise.

LoadCore()

Called within the handler of the event. Allows inheritors to provide their specific logic.

Declaration

cs-api-definition
protected virtual void LoadCore()

MeasureOverride(Size)

Called in the measure layout pass to determine the desired size.

Declaration

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

cs-api-definition
protected override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnIsEnabledChanged(bool, bool)

Called when the IsEnabled property has changed.

Declaration

cs-api-definition
protected virtual void OnIsEnabledChanged(bool newValue, bool oldValue)

Parameters

newValue

bool

oldValue

bool

OnLoaded()

Called within the handler of the event. Allows inheritors to provide their specific logic after the control has been successfully Loaded.

Declaration

cs-api-definition
protected virtual void OnLoaded()

OnTemplateApplied()

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

Declaration

cs-api-definition
protected virtual void OnTemplateApplied()

SetVisualState(string, bool)

Applies the specified visual state as current.

Declaration

cs-api-definition
protected virtual void SetVisualState(string state, bool animate)

Parameters

state

string

The new visual state.

animate

bool

True to use transitions, false otherwise.

UnapplyTemplateCore()

Removes the current control template. Occurs when a template has already been applied and a new one is applied.

Declaration

cs-api-definition
protected virtual void UnapplyTemplateCore()

UnloadCore()

Called within the handler of the event. Allows inheritors to provide their specific logic.

Declaration

cs-api-definition
protected virtual void UnloadCore()

UpdateVisualState(bool)

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

Declaration

cs-api-definition
protected virtual void UpdateVisualState(bool animate)

Parameters

animate

bool

True to use transitions during state update, false otherwise.