Content and decorator controls markup reference
Content controls, headers, tabs, scrolling, popups, and decorators.
TabItem
Section titled “TabItem”Receiver: TabItem.
| Method | Sets | Summary |
|---|---|---|
Content(Element content) |
Content |
Sets the content element. |
Header(Element header) |
Header |
Sets the header element. |
Header(Element header, string text) |
Sets the header element and semantic header text. | |
Header(string text, bool accessKey = true) |
Header |
Sets the header text. |
HeaderText(string value) |
HeaderText |
Sets the semantic header text used by overflow menus and accessibility surfaces. |
IsEnabled(bool value = true) |
IsEnabled |
Sets whether the tab is enabled. |
Receiver: Popup and derived types (where T : Popup).
| Method | Sets | Summary |
|---|---|---|
Content(UIElement value) |
Content |
Sets the element shown in the popup surface. |
OnClosed(EventHandler<PopupClosedEventArgs> handler) |
event Closed |
Subscribes handler to Closed. Occurs after the popup closes, with why it closed. |
OnOpened(EventHandler handler) |
event Opened |
Subscribes handler to Opened. Occurs after the popup opens. |
StaysOpen(bool value = true) |
StaysOpen |
Sets whether the popup survives an outside press and a focus change, read when it opens; only its owner leaving the visual tree or Close then takes it down. |
PromptIcon
Section titled “PromptIcon”Receiver: PromptIcon.
| Method | Sets | Summary |
|---|---|---|
Kind(PromptIconKind value) |
Kind |
Sets the symbol drawn. |
RotationDecorator
Section titled “RotationDecorator”Receiver: RotationDecorator.
| Method | Sets | Summary |
|---|---|---|
Child(UIElement value) |
Child |
Sets the child element. |
Rotation(Rotation value) |
Rotation |
Sets the direction of the 90-degree rotation. |
Separator
Section titled “Separator”Receiver: Separator.
| Method | Sets | Summary |
|---|---|---|
Orientation(Orientation value) |
Orientation |
Sets the direction of the run this rule divides; Horizontal divides a left-to-right run and so draws a vertical rule. |
ShadowDecorator
Section titled “ShadowDecorator”Receiver: ShadowDecorator.
| Method | Sets | Summary |
|---|---|---|
BlurRadius(double value) |
BlurRadius |
Sets the blur radius of the shadow. |
Child(UIElement value) |
Child |
Sets the child element. |
CornerRadius(double value) |
CornerRadius |
Sets the corner radius of the shadow shape. |
OffsetY(double value) |
OffsetY |
Sets the vertical offset of the shadow. |
ShadowColor(Color value) |
ShadowColor |
Sets the shadow color (including alpha for intensity). |
TransformDecorator
Section titled “TransformDecorator”Receiver: TransformDecorator.
| Method | Sets | Summary |
|---|---|---|
Child(UIElement value) |
Child |
Sets the child element. |
Mode(TransformMode value) |
Mode |
Sets whether the transform takes part in layout; the default is Render. |
Transform(Matrix3x2 value) |
Transform |
Sets the transform applied to the child, in DIPs; the default is identity. |
TransformOrigin(Point value) |
TransformOrigin |
Sets the point the transform is applied about in Render mode, as a fraction of this element’s size (0..1); the default is the center (0.5, 0.5). |
Viewbox
Section titled “Viewbox”Receiver: Viewbox.
| Method | Sets | Summary |
|---|---|---|
Child(UIElement value) |
Child |
Sets the child element. |
Stretch(Stretch value) |
Stretch |
Sets how the child is scaled to fill this element; the default is Uniform. |
StretchDirection(StretchDirection value) |
StretchDirection |
Sets whether the scale may enlarge the child, shrink it, or both; the default is Both. |
Border
Section titled “Border”Receiver: Border.
| Method | Sets | Summary |
|---|---|---|
BorderThickness(Thickness thickness) |
NonUniformBorderThickness |
Sets the per-side border thickness. |
Child(UIElement value) |
Child |
Sets the child element. |
ClipToBounds(bool value = true) |
ClipToBounds |
Sets whether the child is clipped to the border bounds, following the rounded corners when CornerRadius is set. |
CornerRadius(CornerRadius cornerRadius) |
NonUniformCornerRadius |
Sets the per-corner radius. |
ContentControl
Section titled “ContentControl”Receiver: ContentControl and derived types (where T : ContentControl).
| Method | Sets | Summary |
|---|---|---|
Content(Element value) |
Content |
Sets the content element. |
TabControl
Section titled “TabControl”Receiver: TabControl.
| Method | Sets | Summary |
|---|---|---|
OnSelectionChanged(Action<object> handler) |
event SelectionChanged |
Subscribes handler to SelectionChanged. Occurs when the selected tab changes. |
SelectedIndex(int value) |
SelectedIndex |
Sets the selected tab index. |
SelectedItem(object value) |
SelectedItem |
Sets the currently selected item object for selection consistency. |
Tab(Element header, Element content) |
Adds a tab with element header. | |
Tab(string header, Element content) |
Adds a tab with text header. | |
TabItems(params TabItem[] tabs) |
Sets the tab items. | |
TabPlacement(TabPlacement value) |
TabPlacement |
Sets where the tab headers are placed. |
TransitionContentControl
Section titled “TransitionContentControl”Receiver: TransitionContentControl and derived types (where T : TransitionContentControl).
| Method | Sets | Summary |
|---|---|---|
Content(Element value) |
Content |
Sets the content element; changing it plays the configured transition. |
OnTransitionCompleted(Action handler) |
event TransitionCompleted |
Subscribes handler to TransitionCompleted. Raised once a content change has finished playing, including the run out to nothing. |
Transition(ContentTransition value) |
Transition |
Sets the transition applied when content changes. |
HeaderedContentControl
Section titled “HeaderedContentControl”Receiver: HeaderedContentControl and derived types (where T : HeaderedContentControl).
| Method | Sets | Summary |
|---|---|---|
Header(Element header) |
Header |
Sets the header element. |
Header(string text, bool accessKey = true) |
Header |
Sets the header text. |
HeaderSpacing(double value) |
HeaderSpacing |
Sets the spacing between header and content. |
ScrollBar
Section titled “ScrollBar”Receiver: ScrollBar.
| Method | Sets | Summary |
|---|---|---|
Orientation(Orientation value) |
Orientation |
Sets the scroll direction (vertical or horizontal). |
ViewportSize(double value) |
ViewportSize |
Sets the viewport size in DIPs, which sizes the thumb relative to the scroll range. |
ScrollViewer
Section titled “ScrollViewer”Receiver: ScrollViewer.
| Method | Sets | Summary |
|---|---|---|
AutoHideScrollBars(bool value = true) |
AutoHideScrollBars |
Sets whether scrollbars overlay the content, reserving no width, and stay hidden until a scroll or a pointer over the bar region reveals them; the default is false. |
AutoHorizontalScroll() |
Sets HorizontalScroll to Auto. | |
AutoVerticalScroll() |
Sets VerticalScroll to Auto. | |
HorizontalScroll(ScrollMode value) |
HorizontalScroll |
Sets the horizontal scroll mode. |
NoHorizontalScroll() |
Sets HorizontalScroll to Disabled. | |
NoVerticalScroll() |
Sets VerticalScroll to Disabled. | |
OnScrollChanged(Action handler) |
event ScrollChanged |
Subscribes handler to ScrollChanged. Raised when scroll metrics or offsets change. |
Scroll(ScrollMode vertical, ScrollMode horizontal) |
VerticalScroll, HorizontalScroll |
Sets VerticalScroll and HorizontalScroll. |
ShowHorizontalScroll() |
Sets HorizontalScroll to Visible. | |
ShowVerticalScroll() |
Sets VerticalScroll to Visible. | |
VerticalScroll(ScrollMode value) |
VerticalScroll |
Sets the vertical scroll mode. |
Expander
Section titled “Expander”Receiver: Expander and derived types (where T : Expander).
| Method | Sets | Summary |
|---|---|---|
BindIsExpanded(ObservableValue<TSource> source, Func<TSource, bool> convert, Func<bool, TSource> convertBack = null) |
bind IsExpanded |
Binds the expanded state to a converted observable value. |
BindIsExpanded(ObservableValue<bool> source) |
bind IsExpanded |
Binds the expanded state to an observable value. |
GlyphSize(double value) |
GlyphSize |
Sets the chevron glyph size. |
IsExpanded(bool value = true) |
IsExpanded |
Sets whether the content is expanded. |
OnExpandedChanged(Action<bool> handler) |
event ExpandedChanged |
Subscribes handler to ExpandedChanged. Occurs when the expanded state changes. |
GroupBox
Section titled “GroupBox”Receiver: GroupBox.
| Method | Sets | Summary |
|---|---|---|
HeaderInset(double value) |
HeaderInset |
Sets the horizontal inset for the header. |