Class HeaderedContentControl
Base class for the content controls that have a header.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class HeaderedContentControl : ContentControl
Constructors
HeaderedContentControl()
Initializes a new instance of the HeaderedContentControl class.
Declaration
public HeaderedContentControl()
Fields
FocusVisualStyleProperty
Identifies the FocusVisualStyle property.
Declaration
public static readonly DependencyProperty FocusVisualStyleProperty
Field Value
System.Windows.DependencyProperty
|
HasHeaderProperty
Identifies the HasHeader property.
Declaration
public static readonly DependencyProperty HasHeaderProperty
Field Value
System.Windows.DependencyProperty
|
HeaderProperty
Identifies the Header property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
System.Windows.DependencyProperty
|
HeaderTemplateProperty
Identifies the HeaderTemplate property.
Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
System.Windows.DependencyProperty
|
HeaderTemplateSelectorProperty
Identifies the HeaderTemplateSelector property.
Declaration
public static readonly DependencyProperty HeaderTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty
|
IsFocusedProperty
Identifies the IsFocused property.
Declaration
public static readonly DependencyProperty IsFocusedProperty
Field Value
System.Windows.DependencyProperty
|
Properties
FocusVisualStyle
Gets or sets the style used by the focus visual of the control. This is a dependency property.
Declaration
public Style FocusVisualStyle { get; set; }
Property Value
System.Windows.Style
|
HasHeader
Gets whether there is header assigned. This is a dependency property.
Declaration
public bool HasHeader { get; }
Property Value
System.Boolean
|
Header
Gets or sets the header of the control. This is a dependency property.
Declaration
public object Header { get; set; }
Property Value
System.Object
|
HeaderTemplate
Gets or sets the data template for the header. This is a dependency property.
Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
HeaderTemplateSelector
Gets or sets a selector for the HeaderTemplate. This is a dependency property.
Declaration
public DataTemplateSelector HeaderTemplateSelector { get; set; }
Property Value
DataTemplateSelector
|
IsFocused
Gets a value indicating whether the control is focused.
Declaration
public bool IsFocused { get; protected set; }
Property Value
System.Boolean
|
Remarks
Please note that IsFocused is a read only property. To focus the Control, use the System.Windows.Controls.Control.Focus method.
Methods
ChangeVisualState()
Changes the visual state of the control using transitions.
Declaration
protected virtual void ChangeVisualState()
ChangeVisualState(Boolean)
Updates the visual state of the control.
Declaration
protected virtual void ChangeVisualState(bool useTransitions)
Parameters
System.Boolean
useTransitions
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 System.Windows.Controls.Control.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Called before the System.Windows.UIElement.GotFocus event occurs.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
The data for the event. |
OnHeaderChanged(Object, Object)
Allows derived classes to act on header change.
Declaration
protected virtual void OnHeaderChanged(object oldHeader, object newHeader)
Parameters
System.Object
oldHeader
The old header value. |
System.Object
newHeader
The new header value. |
See Also
OnHeaderTemplateChanged(DataTemplate, DataTemplate)
Allows derived classes to act on HeaderTemplate change.
Declaration
protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate)
Parameters
System.Windows.DataTemplate
oldHeaderTemplate
The old header template. |
System.Windows.DataTemplate
newHeaderTemplate
The new header template. |
OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
Invoked when the IsEnabled property of the control changes.
Declaration
protected virtual void OnIsEnabledChanged(DependencyPropertyChangedEventArgs e)
Parameters
System.Windows.DependencyPropertyChangedEventArgs
e
The information about the new and old value of the property. |
OnIsFocusedChanged(DependencyPropertyChangedEventArgs)
Called when the IsFocused property changes.
Declaration
protected virtual void OnIsFocusedChanged(DependencyPropertyChangedEventArgs e)
Parameters
System.Windows.DependencyPropertyChangedEventArgs
e
Event args with the old and the new value of the property. |
OnLostFocus(RoutedEventArgs)
Called before the System.Windows.UIElement.LostFocus event occurs.
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
System.Windows.RoutedEventArgs
e
The data for the event. |