Class ExpanderExt
Overrides standard System.Windows.Controls.Expander control. Adds ChildHasFocus property to extend functional possibilities.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class ExpanderExt : Expander
Constructors
ExpanderExt()
Declaration
public ExpanderExt()
Fields
ChildHasFocusProperty
Identifies ChildHasFocus read-only dependency property.
Declaration
public static readonly DependencyProperty ChildHasFocusProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ChildHasFocusPropertyKey
Identifies ChildHasFocus dependency property key.
Declaration
protected static readonly DependencyPropertyKey ChildHasFocusPropertyKey
Field Value
| Type |
|---|
| System.Windows.DependencyPropertyKey |
Properties
ChildHasFocus
Gets or sets a value indicating whether [child has focus].
Declaration
public bool ChildHasFocus { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Methods
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Sets to true ChildHasFocus property.
Declaration
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.KeyboardFocusChangedEventArgs | e | The instance containing the event data. |
OnHeaderChanged(Object, Object)
This method adds header to expander.
Note:
Before adding new header removes it from the logical tree of the previous parent.
Declaration
protected override void OnHeaderChanged(object oldHeader, object newHeader)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | oldHeader | Object that represents old header. |
| System.Object | newHeader | Object that represents new header. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.LostKeyboardFocus attached event reaches an element in its route that is derived from this class. Sets to false ChildHasFocus property.
Declaration
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.KeyboardFocusChangedEventArgs | e | The instance containing the event data. |