Class SectionControl
[TemplatePart(Name = "PART_ContentGrid", Type = typeof(Grid))]
public class SectionControl : Expander, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
- Inheritance
-
SectionControl
- Implements
- Inherited Members
Constructors
SectionControl()
public SectionControl()
Fields
ButtonStyleProperty
public static readonly DependencyProperty ButtonStyleProperty
Field Value
InSectionProperty
public static readonly DependencyProperty InSectionProperty
Field Value
IsContentClippedProperty
public static readonly DependencyProperty IsContentClippedProperty
Field Value
IsMaximizableProperty
public static readonly DependencyProperty IsMaximizableProperty
Field Value
IsMaximizedProperty
public static readonly DependencyProperty IsMaximizedProperty
Field Value
IsResizableProperty
public static readonly DependencyProperty IsResizableProperty
Field Value
MaxHeaderWidthProperty
public static readonly DependencyProperty MaxHeaderWidthProperty
Field Value
PART_ContentGrid
The grid whose first row holds the section content and is sized by the section's (preference-backed) height. The row's MinHeight is maintained so that a resizable section can never be small enough to completely hide a field.
public const string PART_ContentGrid = "PART_ContentGrid"
Field Value
SubtitleProperty
public static readonly DependencyProperty SubtitleProperty
Field Value
Properties
ButtonStyle
public Style ButtonStyle { get; set; }
Property Value
IsContentClipped
True when the section content wants more height than the section currently shows.
public bool IsContentClipped { get; }
Property Value
IsMaximizable
Whether the header offers a maximize button. Only set by hosts (e.g. a content screen's multi-section layout) that respond to the section's IsMaximized state.
public bool IsMaximizable { get; set; }
Property Value
IsMaximized
public bool IsMaximized { get; set; }
Property Value
IsResizable
public bool IsResizable { get; set; }
Property Value
MaxHeaderWidth
public double MaxHeaderWidth { get; set; }
Property Value
Subtitle
public string Subtitle { get; set; }
Property Value
Methods
GetInSection(UIElement)
public static bool GetInSection(UIElement element)
Parameters
elementUIElement
Returns
OnApplyTemplate()
Invoked whenever application code or internal processes call the ApplyTemplate() method.
public override void OnApplyTemplate()
OnKeyDown(KeyEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected override void OnKeyDown(KeyEventArgs e)
Parameters
eKeyEventArgsThe KeyEventArgs that contains the event data.
SetInSection(UIElement, bool)
public static void SetInSection(UIElement element, bool value)