Class
HeaderedContentControl

Base class for the content controls that have a header.

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class HeaderedContentControl : ContentControl

Inheritance: objectHeaderedContentControl

Derived Classes: RadExpanderRadRibbonBackstageItemRadTabItemGroupChromeWindowBase

Constructors

HeaderedContentControl()

Initializes a new instance of the HeaderedContentControl class.

Declaration

cs-api-definition
public HeaderedContentControl()

Fields

FocusVisualStyleProperty

Identifies the FocusVisualStyle property.

Declaration

cs-api-definition
public static readonly DependencyProperty FocusVisualStyleProperty

Field Value

DependencyProperty

HasHeaderProperty

Identifies the HasHeader property.

Declaration

cs-api-definition
public static readonly DependencyProperty HasHeaderProperty

Field Value

DependencyProperty

HeaderProperty

Identifies the Header property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderProperty

Field Value

DependencyProperty

HeaderTemplateProperty

Identifies the HeaderTemplate property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderTemplateProperty

Field Value

DependencyProperty

HeaderTemplateSelectorProperty

Identifies the HeaderTemplateSelector property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderTemplateSelectorProperty

Field Value

DependencyProperty

IsFocusedProperty

Identifies the IsFocused property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsFocusedProperty

Field Value

DependencyProperty

Properties

FocusVisualStyle

Gets or sets the style used by the focus visual of the control. This is a dependency property.

Declaration

cs-api-definition
public Style FocusVisualStyle { get; set; }

Property Value

Style

HasHeader

Gets whether there is header assigned. This is a dependency property.

Declaration

cs-api-definition
[Browsable(false)]
public bool HasHeader { get; }

Property Value

bool

Header

Gets or sets the header of the control. This is a dependency property.

Declaration

cs-api-definition
public object Header { get; set; }

Property Value

object

HeaderTemplate

Gets or sets the data template for the header. This is a dependency property.

Declaration

cs-api-definition
public DataTemplate HeaderTemplate { get; set; }

Property Value

DataTemplate

HeaderTemplateSelector

Gets or sets a selector for the HeaderTemplate. This is a dependency property.

Declaration

cs-api-definition
[Browsable(false)]
public DataTemplateSelector HeaderTemplateSelector { get; set; }

Property Value

DataTemplateSelector

IsFocused

Gets a value indicating whether the control is focused.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsFocused { get; protected set; }

Property Value

bool

Remarks

Please note that IsFocused is a read only property. To focus the Control, use the Control.Focus method.

Methods

ChangeVisualState()

Changes the visual state of the control using transitions.

Declaration

cs-api-definition
protected virtual void ChangeVisualState()

ChangeVisualState(bool)

Updates the visual state of the control.

Declaration

cs-api-definition
protected virtual void ChangeVisualState(bool useTransitions)

Parameters

useTransitions

bool

Indicates whether transitions should be used.

OnApplyTemplate()

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

Declaration

cs-api-definition
protected override void OnApplyTemplate()

OnGotFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnGotFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.

OnHeaderChanged(object, object)

Allows derived classes to act on header change.

Declaration

cs-api-definition
protected virtual void OnHeaderChanged(object oldHeader, object newHeader)

Parameters

oldHeader

object

The old header value.

newHeader

object

The new header value.

OnHeaderTemplateChanged(DataTemplate, DataTemplate)

Allows derived classes to act on HeaderTemplate change.

Declaration

cs-api-definition
protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate)

Parameters

oldHeaderTemplate

DataTemplate

The old header template.

newHeaderTemplate

DataTemplate

The new header template.

OnIsEnabledChanged(DependencyPropertyChangedEventArgs)

Invoked when the IsEnabled property of the control changes.

Declaration

cs-api-definition
protected virtual void OnIsEnabledChanged(DependencyPropertyChangedEventArgs e)

Parameters

e

DependencyPropertyChangedEventArgs

The information about the new and old value of the property.

OnIsFocusedChanged(DependencyPropertyChangedEventArgs)

Called when the IsFocused property changes.

Declaration

cs-api-definition
protected virtual void OnIsFocusedChanged(DependencyPropertyChangedEventArgs e)

Parameters

e

DependencyPropertyChangedEventArgs

Event args with the old and the new value of the property.

OnLostFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnLostFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.