Table of Contents

Class SectionControl

Namespace
The.WPF.Controls
Assembly
Instagile.WPF.dll
[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

DependencyProperty

InSectionProperty

public static readonly DependencyProperty InSectionProperty

Field Value

DependencyProperty

IsContentClippedProperty

public static readonly DependencyProperty IsContentClippedProperty

Field Value

DependencyProperty

IsMaximizableProperty

public static readonly DependencyProperty IsMaximizableProperty

Field Value

DependencyProperty

IsMaximizedProperty

public static readonly DependencyProperty IsMaximizedProperty

Field Value

DependencyProperty

IsResizableProperty

public static readonly DependencyProperty IsResizableProperty

Field Value

DependencyProperty

MaxHeaderWidthProperty

public static readonly DependencyProperty MaxHeaderWidthProperty

Field Value

DependencyProperty

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

string

SubtitleProperty

public static readonly DependencyProperty SubtitleProperty

Field Value

DependencyProperty

Properties

ButtonStyle

public Style ButtonStyle { get; set; }

Property Value

Style

IsContentClipped

True when the section content wants more height than the section currently shows.

public bool IsContentClipped { get; }

Property Value

bool

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

bool

IsMaximized

public bool IsMaximized { get; set; }

Property Value

bool

IsResizable

public bool IsResizable { get; set; }

Property Value

bool

MaxHeaderWidth

public double MaxHeaderWidth { get; set; }

Property Value

double

Subtitle

public string Subtitle { get; set; }

Property Value

string

Methods

GetInSection(UIElement)

public static bool GetInSection(UIElement element)

Parameters

element UIElement

Returns

bool

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

e KeyEventArgs

The KeyEventArgs that contains the event data.

SetInSection(UIElement, bool)

public static void SetInSection(UIElement element, bool value)

Parameters

element UIElement
value bool