Skip to main content

Crate waft_winui

Crate waft_winui 

Source
Expand description

WinUI 3 controls and Fluent styling for the Waft UI framework.

See the repository for setup and the gallery.

Macros§

fluent_route_transition_mixin_modal_route_overrides
The ModalRoute overrides a FluentRouteTransitionMixin route inherits. Write it inside impl ModalRoute for MyRoute { .. }, with maintain_state and fullscreen_dialog.
fluent_route_transition_mixin_transition_route_overrides
The TransitionRoute overrides a FluentRouteTransitionMixin route inherits. Write it inside impl TransitionRoute for MyRoute { .. }, with opaque.

Structs§

AccentPalette
The SystemAccentColor* resources the OS supplies to every XAML app: the accent and its three lighter and three darker shades. Light theme controls use dark1, dark theme controls light2.
AcrylicBrushResources
The source AcrylicBrush tint, luminosity, and fallback recipe. Brush::Acrylic paints the in-window material using these values.
AppBarButton
XAML AppBarButton: a command with an icon and a label, for a CommandBar.
AppBarSeparator
XAML AppBarSeparator: a line between groups of commands.
AppBarToggleButton
XAML AppBarToggleButton: a command that keeps a checked state, for a CommandBar.
AppBarToggleButtonState
The CommonStates state the template is in, kept for an indeterminate button.
AutoSuggestBox
XAML AutoSuggestBox: a text box whose text lives in the application’s controller, with the suggestions the application sets in items_source as it hears text_changed.
AutoSuggestBoxQuerySubmittedEventArgs
XAML AutoSuggestBoxQuerySubmittedEventArgs.
AutoSuggestBoxState
The box’s own state: the focus and popup it owns, and the source’s flags.
AutoSuggestBoxSuggestionChosenEventArgs
XAML AutoSuggestBoxSuggestionChosenEventArgs.
AutoSuggestBoxTextChangedEventArgs
XAML AutoSuggestBoxTextChangedEventArgs.
BreadcrumbBar
Application-owned navigation; clicking a breadcrumb does not edit its collection.
BreadcrumbBarItem
Item data and the content used by its inline and overflow containers.
BreadcrumbBarItemClickedEventArgs
ItemClicked identifies the original collection entry, including clicks in the reversed flyout.
BreadcrumbBarState
Inline containers survive overflow; the flyout takes a snapshot when opened.
Button
XAML Button: Content shown in the style’s bezel, Click raised on activation.
ButtonBrushes
The brushes a button style resolves to in one state.
CellPlacement
The attached Grid.Row, Grid.Column, Grid.RowSpan and Grid.ColumnSpan of one child, before clamping.
CheckBox
XAML CheckBox: IsChecked (None is indeterminate) with IsThreeState, Content, and the Checked / Unchecked / Indeterminate events as one handler.
CheckBoxBrushes
The brushes one CombinedStates storyboard names.
ColorChangedEventArgs
XAML ColorChangedEventArgs.
ColorPicker
XAML ColorPicker with the template of ColorPicker.xaml.
ColorPickerSlider
XAML ColorPickerSlider (a Slider) in ColorPickerSliderStyle.
ColorPickerSliderState
The slider’s own state: its ToolTip.
ColorPickerState
The parts ColorPicker.cpp keeps of its template, and its colour.
ColorSpectrum
XAML ColorSpectrum with the template of ColorSpectrum.xaml.
ColorSpectrumColorChangedEventArgs
XAML ColorChangedEventArgs of ColorSpectrum.ColorChanged, with the HsvColor the spectrum asks for.
ColorSpectrumState
The spectrum’s own state (ColorSpectrum.h members).
ColorTransition
Animates from the colour last built to color over duration whenever color changes; XAML BrushTransition (linear, the transition names no easing).
ColorTransitionState
ColumnDefinition
XAML ColumnDefinition: Width (default *), MinWidth, MaxWidth.
ComboBox
XAML ComboBox with the template of DefaultComboBoxStyle.
ComboBoxItem
One item of a ComboBox: a XAML ComboBoxItem, or an item of Items the box makes one for.
ComboBoxSelectionChangedEventArgs
XAML SelectionChangedEventArgs of a ComboBox: what was selected and what is now.
ComboBoxState
The parts ComboBox_Partial.cpp keeps of its template, its flags and its search.
ComboBoxTextSubmittedEventArgs
XAML ComboBoxTextSubmittedEventArgs.
CommandBar
XAML CommandBar.
CommandBarState
The bar’s view of its owner’s IsOpen, its transition, the dynamic overflow, its overlay and its focus.
CommonStates
Tracks pointer over, press, keyboard activation and focus for a control and runs click on activation; the ButtonBase of XAML.
CommonStatesData
ContentDialog
A persistent dialog object: set its properties, show it with show_async from a context beneath a Navigator, and dispose it when its owner is disposed.
ContentDialogButtonClickEventArgs
Arguments of a command button’s click, raised before the dialog closes. A handler that decides later keeps them and takes a deferral.
ContentDialogClosedEventArgs
Arguments of the Closed event.
ContentDialogClosingEventArgs
Arguments of the Closing event. A handler that decides later keeps them and takes a deferral.
ControlBorder
A rounded rectangle with a background brush and a border brush, the child inside the border and padding.
ControlStates
What the state tracker knows: the common state and whether the system focus visual shows, which it does while the control has the focus and the focus arrived by keyboard.
DecimalFormatter
DecimalFormatter as NumberBox::GetRegionalSettingsAwareDecimalFormatter makes it, in the en-US conventions: a value in its shortest exact decimal form, with at least integer_digits digits before a . and fraction_digits after it, without grouping, and a - before a negative value but not before zero. It reads an optional -, digits and at most one .; grouping separators, exponents and other signs are not numbers to it.
Deferral
A deferral an event’s handler took: the control waits for complete before it goes on.
DeferralCompleted
ERROR_DEFERRAL_COMPLETED: a deferral was asked for, or completed, after its generation had finished, or completed twice.
DropDownButton
A button that displays a chevron and opens its associated flyout after Click.
DynamicOverflowItemsChangingEventArgs
XAML DynamicOverflowItemsChangingEventArgs.
Ellipse
XAML Ellipse: Fill and Stroke at StrokeThickness, the stroke centred on the geometry inset by half the thickness so it stays inside the bounds, as a Shape lays out.
Expander
A header toggle that reveals or hides retained content using the Fluent template.
ExpanderState
Expander’s animation and retained content lifecycle.
ExpanderTemplateParts
The template parts Expander::OnApplyTemplate attaches its behaviour to.
ExpanderTemplateStates
What an Expander template is built for. ExpandDirectionStates follows Expander::expand_direction.
FluentApp
An application using Fluent design, WinUI’s controls and their theme resources.
FluentAppState
The state of a FluentApp: its widget’s fields through State.
FluentPage
XAML Page: content on a background, clear of the system’s bars and keyboard.
FluentPageRoute
A page in a Fluent app, entering and leaving with WinUI’s Frame transition.
FluentRoutePage
A page of a Navigator’s pages, shown by a FluentPageRoute: what Flutter’s MaterialPage and CupertinoPage are to their routes. A Navigator built from pages enters and leaves each with WinUI’s Frame transition as its pages change, and the page given later under the same key is the one shown.
FluentScrollBehavior
How a Fluent app’s scrollables behave: WinUI’s scroll bar and edge.
FluentTheme
A Fluent app’s colours: which WinUI theme dictionary its controls resolve against, and the accent palette they draw with.
Flyout
A persistent flyout object whose child State survives closing and changing opening targets.
FlyoutBaseClosingEventArgs
Arguments passed before hiding a flyout.
FlyoutShowOptions
Per-opening overrides; placement is inherited when absent.
FlyoutTarget
Supplies an opening target’s lifecycle, theme and direction to retained flyouts.
FlyoutTargetState
Tracks only target lifetime and inherited settings, not flyout content State.
FocusVisual
Draws the focus rings around child when visible, margin (left, top, right, bottom; negative grows outward, as XAML’s FocusVisualMargin) away from its bounds.
FontIcon
XAML FontIcon: a glyph centred in the icon’s bounds, drawn in FontFamily at FontSize and optionally reflected in right-to-left layout. The glyph shapes use the documented open font substitute.
Grid
XAML Grid.
GridCell
The attached properties Grid.Row, Grid.Column, Grid.RowSpan and Grid.ColumnSpan on a child of a Grid.
GridLength
XAML GridLength: Auto, a pixel value, or n*.
GridParentData
The attached Grid.Row, Grid.Column, Grid.RowSpan and Grid.ColumnSpan of a child, with its offset in the grid.
HsvColor
XAML Vector4 of ColorSpectrum.HsvColor: hue from 0 to 360, and saturation, value and alpha from 0 to 1, as x, y, z and w.
HyperlinkButton
XAML HyperlinkButton: Content in the accent foreground, Click raised on activation. NavigateUri is not offered: launching it is the Windows shell’s (Launcher::TryInvokeLauncher); a caller opens its link in click.
HyperlinkButtonBrushes
The brushes the style resolves to in one state.
InfoBadge
XAML InfoBadge: a badge showing a count, an icon or a dot.
InfoBar
An inline notification with a severity icon, optional action and cancelable close button.
InfoBarClosedEventArgs
Arguments supplied after an uncanceled close.
InfoBarClosingEventArgs
Mutable arguments supplied before a close is applied.
InfoBarPanel
A panel that switches to vertical layout when its banner content no longer fits.
InfoBarPanelChild
Places a child with InfoBarPanel’s orientation-specific margins.
InfoBarPanelMargins
Attached margins used when the panel lays out horizontally or vertically.
InfoBarPanelParentData
The two orientation margins attached to an InfoBarPanel child.
InfoBarState
Visibility retained while a programmatic close waits for its cancelable event.
ItemContainer
XAML ItemContainer.
ItemContainerState
The container’s pointer, focus and place in its view.
ItemsView
XAML ItemsView.
ItemsViewSource
What an ItemsView shows and what of it is selected: WinUI’s ItemsSource and the SelectionModel and current-element model that ItemsView keeps over it, as one object the application holds.
ItemsViewState
The selection the view listens to, the built items, their measured extents and the scrolling.
Margin
Reserves signed outside space while leaving the child’s paint unclipped.
MenuBar
Horizontal menu headers with one Tab entry and source arrow-key navigation.
MenuBarItem
A menu header and its commands, with stable identity across collection rebuilds.
MenuBarState
Live header controls and the item remembered by TabNavigation.Once.
MenuFlyout
Persistent owner of a collection displayed by a MenuFlyoutPresenter.
MenuFlyoutItem
Configuration for one member of the MenuFlyoutItemBase family.
NavigationView
A navigation shell; the owner supplies content and handles navigation events.
NavigationViewItem
Stable item data; the parent owns selection, expansion and focus across reparenting.
NavigationViewItemEventArgs
Identifies a menu item independently of its current visual projection.
NavigationViewSelectionChangedEventArgs
Describes selection, including clearing selection when the selected item is removed.
NavigationViewState
Source state that cannot be derived from the current width alone.
NumberBox
XAML NumberBox with the template of NumberBox.xaml.
NumberBoxState
The parts NumberBox.cpp keeps of its template, and its value.
NumberBoxValueChangedEventArgs
XAML NumberBoxValueChangedEventArgs.
PasswordBox
The WinUI PasswordBox control with its default Fluent template.
PathIcon
XAML PathIcon: a geometry filled with the icon’s foreground. As Shape lays out with Stretch.None, the icon asks for the space between the origin and the geometry’s far edges, and the geometry keeps its own coordinates.
ProgressBar
A horizontal progress indicator with the Fluent determinate, paused, error and indeterminate states.
ProgressBarState
Owns the source storyboard clock and the color captured when a state changes.
ProgressRing
XAML ProgressRing: a ring that either fills to a value or turns while work continues.
ProgressRingState
Holds the clock the player runs on, and the segment a value change is playing through.
RadioButton
XAML RadioButton: IsChecked with Checked, Content, IsEnabled. The group is the caller’s: the checked handler fires when an unchecked button is activated, and the caller checks it and unchecks the others.
RangeBase
Minimum, Maximum and Value of a RangeBase control.
RenderGrid
The render object behind Grid.
RenderInfoBarPanel
InfoBarPanel’s native render object; children keep their desired sizes between measure and arrange.
RenderMargin
Native shifted-child layout with signed outside insets.
RenderSizeObserver
A layout proxy that schedules size notifications without mutating the tree during layout.
RepeatButton
XAML RepeatButton: Click on the press, then again after Delay and every Interval while held.
RepeatButtonBrushes
The brushes the style resolves to in one state.
RepeatButtonState
The repeat machinery of RepeatButton_Partial.cpp.
RetainedFlyoutHost
Owns flyout content independently of any widget that opens it.
RowDefinition
XAML RowDefinition: Height (default *), MinHeight, MaxHeight.
ScrollMetricsObserver
Observes the first descendant scroller without inserting another viewport.
ScrollViewport
Single-child scrolling with reveal’s wheel, trackpad, keyboard and focus-reveal behavior.
ScrollViewportController
Owns one reveal ScrollController and reports offset and dimension changes together.
ScrollViewportMetrics
A snapshot of one native scrolling axis, in logical pixels.
SelectorBar
A XAML SelectorBar: a few views’ names in a row, one of them selected, the pill under it. The application owns the selection: selection_changed asks it to select an item, which it passes back as selected.
SelectorBarItem
One item of a SelectorBar: a XAML SelectorBarItem.
SelectorBarState
The selection of PART_ItemsView, and the selection last asked of the application.
SettingsCard
The Toolkit’s SettingsCard: Header, Description and HeaderIcon at the start, Content at the end, and with IsClickEnabled a Click on the whole card, marked by ActionIcon.
SettingsExpander
The Toolkit’s SettingsExpander: a settings card (Header, Description, HeaderIcon, Content) whose chevron shows Items, the rows under it, between ItemsHeader and ItemsFooter.
SizeObserver
A transparent layout proxy. Multiple layouts in one frame report only the final size. The first report uses Size::ZERO as the previous size.
Slider
XAML Slider: Value between Minimum and Maximum with ValueChanged, StepFrequency, ticks, Orientation and Header.
SliderState
The slider’s own state (Slider_Partial.h members) and its thumb’s (Thumb_Partial.h).
SliderTemplate
A Slider ControlTemplate replacing the default style’s, as a derived control’s style sets one; the slider keeps its input, value and keyboard behaviour.
SliderTemplateParts
The template parts Slider::OnApplyTemplate attaches its behaviour to.
SliderTemplateStates
What a Slider template is built for: the two CommonStates groups, focus, the thumb’s value and the pixel scale.
SplitButton
A primary action and a separate button that opens an associated flyout.
SplitView
A container with a content area and a pane that can expand, collapse or overlay the content.
SplitViewPaneClosingEventArgs
Cancel is honored for light dismissal, not an explicit is_pane_open = false update.
SplitViewState
Retains pane animation, focus and measured template values across widget updates.
SplitViewTemplateSettings
Read-only values supplied to the SplitView template. Auto resolves after the pane’s layout.
StackLayout
XAML StackLayout, the one Layout this port has: items one after another along orientation, spacing apart.
TabView
A tab strip and selected content presenter, with source width and keyboard behavior.
TabViewItem
A stable tab identity, header, and content supplied to TabView.
TabViewReorderRequestedEventArgs
Requests moving a tab within the owner’s collection. new_index is its index after removal.
TabViewState
Retains containers across reorders and tracks source strip sizing and hover state.
TabViewTabCloseRequestedEventArgs
Identifies the tab whose close was requested; removing it remains the owner’s choice.
TabViewTabDragCompletedEventArgs
TabDragCompleted; was_accepted corresponds to a non-None drop result.
TabViewTabDragStartingEventArgs
TabDragStarting, raised only when CanDragTabs is enabled.
TabViewTabStripDropEventArgs
In-window TabStripDragOver/TabStripDrop data. The owner decides whether to accept a cross-strip move.
TableView
XAML TableView.
TableViewColumn
XAML TableViewColumn: one column of a TableView over items of type T.
TableViewSelection
The selected row of a TableView: at most one, as WinUI’s v1 has it.
TableViewSelectionChangedEventArgs
XAML SelectionChangedEventArgs of a TableView: the items, as their indices in the source’s items, that left and joined the selection.
TableViewSort
Sorting a TableView from code.
TableViewSortedEventArgs
XAML TableViewSortedEventArgs, raised after a sort was applied.
TableViewSortingEventArgs
XAML TableViewSortingEventArgs, raised before a sort is applied.
TableViewSource
XAML TableViewSource: the items a TableView shows and the shape it shows them in.
TableViewState
The table’s view of its source, selection, sort and columns, its scrolling, the grippers and the built rows.
TextBox
The WinUI TextBox control with its default Fluent template.
TextBoxState
A TextBox in the tree, which a GlobalKey on the box reaches.
ThemeResources
Every WinUI theme resource the kit uses, by its key, for one theme and accent palette: the brushes and colours of WinUI’s Light and Dark (XAML Default) dictionaries, and the sizes, durations and weights both share.
ThemeScope
Gives a subtree its theme resources, as XAML’s RequestedTheme and resource dictionaries do: ThemeScope::new a theme and accent with WinUI’s values, ThemeScope::overriding the enclosing scope’s, and ThemeScope::with_resources resolved ones. Its any, light and dark then change them, as a dictionary’s entries and its ThemeDictionaries do: any in both themes, then the one for the theme shown.
TickBar
A TickBar element: its Fill and what ArrangeOverride reads from the Slider it belongs to.
ToggleButton
XAML ToggleButton: IsChecked (Some(true), Some(false) or None for indeterminate) with IsThreeState, Content, and Click after each toggle.
ToggleButtonBrushes
The brushes the style resolves to in one of its twelve states.
ToggleSplitButton
A toggle action with a separate flyout button that does not change the checked value.
ToggleSwitch
XAML ToggleSwitch: IsOn with Toggled, Header, OnContent and OffContent.
ToggleSwitchState
The drag of ToggleSwitch_Partial.cpp: m_isDragging, m_wasDragged and m_knobTranslation.
ToggleSwitchTemplateParts
The template parts ToggleSwitch::OnApplyTemplate attaches its behaviour to.
ToggleSwitchTemplateStates
What a ToggleSwitch template is built for: CommonStates, focus, and where ToggleStates and the drag put the knob. ContentStates follows ToggleSwitch::is_on.
ToolTip
XAML ToolTip: the content, style and positioning properties used by ToolTipService.
ToolTipService
ToolTipService attached properties, expressed as a stable wrapper around the owner widget.
ToolTipServiceState
The overlay lifecycle of a ToolTipService owner.
TreeView
XAML TreeView with the template of DefaultTreeViewStyle: a TreeViewList of TreeViewItems.
TreeViewCollapsedEventArgs
XAML TreeViewCollapsedEventArgs: the tree collapsed a node, which the application stores in its is_expanded.
TreeViewDragItemsCompletedEventArgs
XAML TreeViewDragItemsCompletedEventArgs.
TreeViewDragItemsStartingEventArgs
XAML TreeViewDragItemsStartingEventArgs.
TreeViewExpandingEventArgs
XAML TreeViewExpandingEventArgs: the tree expanded a node, which the application stores in its is_expanded.
TreeViewItemInvokedEventArgs
XAML TreeViewItemInvokedEventArgs.
TreeViewMoveRequestedEventArgs
The moves a drop or a keyboard reorder makes, which TreeView makes on its own nodes in WinUI.
TreeViewNode
XAML TreeViewNode: one node of the tree the application passes.
TreeViewNodeMove
One move of a node, which the application applies to its tree: the node leaves its parent and becomes the child of new_parent at index.
TreeViewSelectionChangedEventArgs
XAML TreeViewSelectionChangedEventArgs, with the selection the tree asks for.
TreeViewState
TreeView’s view model and list: the nodes as the tree reads them, the rows, the focus, and what the tree asked of the application since it last built the tree.

Enums§

AppBarClosedDisplayMode
XAML AppBarClosedDisplayMode: how much of the bar shows while it is closed.
AutoSuggestionBoxTextChangeReason
XAML AutoSuggestionBoxTextChangeReason: what changed the text.
BackgroundSizing
XAML BackgroundSizing: whether the background stops at the border’s inner edge or extends under it.
Brush
A XAML Brush a template paints with.
ButtonStyle
Which Button style the control uses; XAML Style="{StaticResource AccentButtonStyle}" and its siblings.
ColorPickerHsvChannel
XAML ColorPickerHsvChannel: the channel a ColorPickerSlider sets.
ColorSpectrumComponents
XAML ColorSpectrumComponents: the two HSV components a spectrum lays out, the first across a box or around a ring, the second down a box or out from a ring’s centre. The third is the one the spectrum blends its images by.
ColorSpectrumShape
XAML ColorSpectrumShape.
ComboBoxSelectedItem
Something a ComboBox selects: an element of RemovedItems or AddedItems.
ComboBoxSelectionChangedTrigger
XAML ComboBoxSelectionChangedTrigger: what moving through the open drop-down with the keyboard does.
CommandBarDefaultLabelPosition
XAML CommandBarDefaultLabelPosition: where the bar’s buttons show their labels.
CommandBarDynamicOverflowAction
XAML CommandBarDynamicOverflowAction.
CommandBarElement
An item of PrimaryCommands or SecondaryCommands: XAML’s ICommandBarElement.
CommandBarLabelPosition
XAML CommandBarLabelPosition: whether a button follows the bar’s label position.
CommandBarOverflowButtonVisibility
XAML CommandBarOverflowButtonVisibility.
CommonState
The CommonStates group every control template declares.
ContentAlignment
The Toolkit’s ContentAlignment: where a SettingsCard puts its content.
ContentAlignmentState
The ContentAlignmentStates group, picked from ContentAlignment and the card’s width.
ContentDialogButton
XAML ContentDialogButton: one of the three command buttons, or none.
ContentDialogError
Why show_async refused to show a dialog.
ContentDialogResult
XAML ContentDialogResult: the command that closed the dialog. The close button, Escape and hide close it with None.
DataPackageOperation
XAML DataPackageOperation, as a drag within the tree ends.
ExpandDirection
Direction in which an Expander reveals its content.
ExpandState
The ExpandStates group, which Expander::UpdateExpandState picks from IsExpanded and the ExpandDirection at the time it changed.
FluentSymbol
Built-in control symbols, mapped to the open Fluent System Icons codepoints. These names intentionally do not promise Segoe’s private-use glyph mapping.
FluentThemeMode
Which of a FluentApp’s themes it shows.
FlyoutPlacementMode
Preferred side and edge alignment relative to the opening target.
FlyoutShowMode
Source policy for focus acquisition and outside input.
GridUnitType
XAML GridUnitType.
HorizontalAlignment
XAML HorizontalAlignment: where an element, or a control’s content, sits across the slot it is given.
InfoBadgeDisplayKind
The DisplayKindStates group of the template, as OnDisplayKindPropertiesChanged chooses it.
InfoBadgeStyle
The named InfoBadge styles of InfoBadge_themeresources.xaml, which differ in the background their severity calls for.
InfoBarCloseReason
Cause of an InfoBar close.
InfoBarSeverity
Severity of a notification shown by InfoBar.
ItemContainerMultiSelectMode
ItemContainerMultiSelectMode: whether the item shows the check box of Multiple mode; Auto takes it from the ItemsView’s selection mode.
ItemContainerUserInvokeMode
ItemContainerUserInvokeMode: whether the user can invoke the item; Auto takes it from ItemsView::is_item_invoked_enabled.
ItemContainerUserSelectMode
ItemContainerUserSelectMode: whether the user can select the item; Auto takes it from the ItemsView’s selection mode.
ItemsViewSelectionMode
ItemsViewSelectionMode.
LightDismissOverlayMode
Specifies whether a light-dismiss layer visually dims the content.
MenuFlyoutItemKind
The source item classes share text, icon and enabled properties.
NavigationRecommendedTransitionDirection
The source’s suggested page-transition direction; the owner performs navigation.
NavigationViewBackButtonVisible
Controls whether the navigation back button occupies its template slot.
NavigationViewDisplayMode
The space available to the left navigation pane.
NavigationViewItemKind
The three container types accepted by NavigationView’s item factory.
NavigationViewPaneDisplayMode
Selects adaptive left navigation or an explicit pane configuration.
NavigationViewSelectionFollowsFocus
Whether moving keyboard focus also invokes selection.
NumberBoxSpinButtonPlacementMode
XAML NumberBoxSpinButtonPlacementMode: where the spin buttons are.
NumberBoxValidationMode
XAML NumberBoxValidationMode: what becomes of text that is not a number, and of values out of range.
PasswordRevealMode
WinUI PasswordRevealMode; Peek reveals only while the eye button or Alt+F8 is held.
PlacementMode
XAML PlacementMode, shared by ToolTip and ToolTipService.
ScrollBarVisibility
XAML ScrollBarVisibility for ScrollViewer.HorizontalScrollBarVisibility, as far as the kit’s scroll bar can draw it.
SliderSnapsTo
XAML SliderSnapsTo: what Value snaps to while the thumb moves.
SortDirection
XAML SortDirection (TabularShaping/SortDirection.idl).
SplitViewDisplayMode
Specifies how the pane and content areas of a SplitView are displayed.
SplitViewPanePlacement
Specifies which side of a SplitView contains its pane.
TabViewCloseButtonOverlayMode
When closable tabs expose their close button.
TabViewWidthMode
How the tab strip allocates width to its headers.
TableViewDensity
XAML TableViewDensity: the row height and the built-in cell and header padding.
TableViewFrozenEdge
XAML TableViewFrozenEdge: Leading pins a column in the contiguous prefix from the first column; Trailing is reserved.
TableViewGridLinesVisibility
XAML TableViewGridLinesVisibility.
TableViewHeadersVisibility
XAML TableViewHeadersVisibility.
TableViewSelectionMode
XAML TableViewSelectionMode.
TableViewSortCycle
XAML TableViewSortCycle: the directions repeated header clicks walk. The first is the direction an unsorted column opens in; the None variants add a step back to source order.
TextBlockStyle
One of WinUI’s text block styles; XAML {StaticResource BodyTextBlockStyle} and its siblings.
TextWrapping
XAML TextWrapping: whether long lines break at the box’s width.
Theme
XAML ElementTheme / the theme dictionary a lookup resolves in. High contrast is deferred: its values are the OS’s system colours.
TickPlacement
XAML TickPlacement: which of the slider’s tick bars show.
TreeViewSelectionMode
XAML TreeViewSelectionMode.

Constants§

ACCEPT_STROKE_THICKNESS
CompositionSpriteShape::StrokeThickness of every shape in the program.
ACCEPT_VISUAL_DURATION
AnimatedAcceptVisualSource::Duration(): c_durationTicks of 100 ns, 160 frames at 60 fps.
ACCEPT_VISUAL_SIZE
AnimatedAcceptVisualSource::Size().
BUTTON_BORDER_THICKNESS
XAML ButtonBorderThemeThickness.
BUTTON_FOCUS_VISUAL_MARGIN
The FocusVisualMargin the button styles set.
CHECK_BOX_ROOT_BORDER_THICKNESS
Control.BorderThickness: the style sets none, so RootGrid draws no border.
CHECK_GLYPH_DISABLED_SIZE
The size the Disabled storyboard animates CheckGlyph to.
CHECK_GLYPH_OFFSET
CheckGlyph’s Margin="0,1,0,-1": the glyph sits one pixel below the box’s centre in the checked and unchecked states.
CHECK_GLYPH_STROKE_THICKNESS
The default StrokeThickness of a XAML Shape, which CheckGlyph keeps.
CHECK_POLYLINE
Geometry_1: the check, in shape space.
CHECK_SPRITE_OFFSET
CLICKABLE_SETTINGS_EXPANDER_ITEM_PADDING
ClickableSettingsExpanderItemPadding: left, top, right, bottom.
COLOR_PICKER_BORDER_THICKNESS
ColorPickerBorderStyle’s StrokeThickness, of RectangleBorder and EllipseBorder.
CONTENT_GAP
The gap column between the switch and its content.
FLUENT_ICON_FONT_FAMILY
The family under which the bundled open icon font is registered.
FOCUS_VISUAL_MARGIN
FocusVisualMargin of the style.
FOCUS_VISUAL_PRIMARY_THICKNESS
XAML SystemFocusVisualPrimaryThickness.
FOCUS_VISUAL_SECONDARY_THICKNESS
XAML SystemFocusVisualSecondaryThickness.
FONT_FAMILY
The family name an app registers Selawik under, the kit’s stand-in for XamlAutoFontFamily (Segoe UI Variable on Windows) and the default content_control_theme_font_family.
GLYPH_AREA_HEIGHT
The grid the ellipses centre in: Height="32".
GLYPH_COLUMN_WIDTH
The first column of RootGrid: Width="20".
HYPERLINK_BUTTON_FOCUS_VISUAL_MARGIN
The FocusVisualMargin the style sets.
ICON_FONT_SIZE
g_ClientCoreFontSize of icon.cpp: the glyph size an icon uses when its FontSize is left at its default, rather than the enclosing control’s text size.
INDETERMINATE_POLYLINE
Geometry_0: the indeterminate bar, in shape space.
INDETERMINATE_SPRITE_OFFSET
KNOB_AREA
SwitchKnob: the grid the knob shapes are arranged in.
KNOB_CORNER_RADIUS
SwitchKnobOn’s CornerRadius and SwitchKnobOff’s RadiusX / RadiusY.
KNOB_TRANSLATION_RANGE
KnobTranslateTransform.X in the On state (To="20"): m_maxKnobTranslation of SizeChangedHandler, the knob bounds’ width less the knob’s; m_minKnobTranslation is 0.
LAYER_SCALE
Null 230: every layer’s container scales 1.05 about the canvas centre (offset (−24, −24), scale 1.05, offset (24, 24)).
MIN_TICKMARK_GAP
MIN_TICKMARK_GAP of TickBar_Partial.h: Windows requires visual tick marks at least this far apart; closer logical ticks are thinned to a multiple.
NORMAL_OFF_TO_NORMAL_ON
The NormalOffToNormalOn markers; PointerOverOffToPointerOverOn and PressedOffToNormalOn span the same length, with the same TrimEnd keyframes.
NORMAL_ON_TO_NORMAL_OFF
The NormalOnToNormalOff markers; PointerOverOnToPointerOverOff and PressedOnToNormalOff span the same length, with the same TrimStart keyframes.
PRESSED_GLYPH_PRESSED_SIZE
The size the Pressed storyboard animates PressedCheckGlyph to.
PRESSED_GLYPH_SIZE
PressedCheckGlyph: Width="4" Height="4" until the Pressed storyboard grows it.
PROGRESS_RING_DEFAULT_MAXIMUM
ProgressRing.xaml’s Maximum setter.
PROGRESS_RING_DURATION
c_durationTicks of both generated visuals: twenty million ticks of 100 ns, so two seconds.
PROGRESS_RING_MIN_SIZE
ProgressRing.xaml’s MinWidth and MinHeight setters.
PROGRESS_RING_SIZE
ProgressRing.xaml’s Width and Height setters.
RADIO_BUTTON_FOCUS_VISUAL_MARGIN
The style’s FocusVisualMargin.
RADIO_BUTTON_MIN_WIDTH
The style’s MinWidth.
RADIO_BUTTON_PADDING
The style’s Padding, the ContentPresenter’s margin: left, top, right, bottom.
RANGE_BASE_DEFAULT_LARGE_CHANGE
RangeBase::GetDefaultValue2: LargeChange defaults to 1.
RANGE_BASE_DEFAULT_MAXIMUM
RangeBase::GetDefaultValue2: Maximum defaults to 1; Minimum and Value to 0.
RANGE_BASE_DEFAULT_SMALL_CHANGE
RangeBase::GetDefaultValue2: SmallChange defaults to 0.1.
REPEAT_BUTTON_DELAY
The default Delay, 500 ms: RepeatButton_Delay in DependencyProperty.cpp.
REPEAT_BUTTON_FOCUS_VISUAL_MARGIN
The FocusVisualMargin the style sets.
REPEAT_BUTTON_INTERVAL
The default Interval, 33 ms: RepeatButton_Interval in DependencyProperty.cpp.
RIGHT_ALIGNED_COMPACT_TOGGLE_SWITCH_HEIGHT
The style’s Height.
RING_SIZE
OuterEllipse and CheckOuterEllipse: Width="20" Height="20".
SELECTION_ELLIPSE_LARGE_SIZE
SelectionEllipsePanel’s Width and Height in PressedLarge.
SELECTION_ELLIPSE_SIZE
The CommonStates default Width and Height of SelectionEllipsePanel.
SETTINGS_CARD_ACTION_ICON_MARGIN
SettingsCardActionIconMargin: left, top, right, bottom.
SETTINGS_CARD_ACTION_ICON_MAX_SIZE
SettingsCardActionIconMaxSize.
SETTINGS_CARD_BORDER_THICKNESS
SettingsCardBorderThickness: left, top, right, bottom.
SETTINGS_CARD_CONTENT_MIN_WIDTH
SettingsCardContentMinWidth: the MinWidth the card’s style gives a Slider, ComboBox or TextBox in it.
SETTINGS_CARD_DESCRIPTION_FONT_SIZE
SettingsCardDescriptionFontSize.
SETTINGS_CARD_HEADER_ICON_MARGIN
SettingsCardHeaderIconMargin: left, top, right, bottom.
SETTINGS_CARD_HEADER_ICON_MAX_SIZE
SettingsCardHeaderIconMaxSize.
SETTINGS_CARD_LEFT_INDENTION
SettingsCardLeftIndention: the least width of the header icon’s column.
SETTINGS_CARD_MIN_HEIGHT
SettingsCardMinHeight.
SETTINGS_CARD_MIN_WIDTH
SettingsCardMinWidth.
SETTINGS_CARD_PADDING
SettingsCardPadding: left, top, right, bottom.
SETTINGS_CARD_VERTICAL_HEADER_CONTENT_SPACING
SettingsCardVerticalHeaderContentSpacing.
SETTINGS_CARD_WRAP_NO_ICON_THRESHOLD
SettingsCardWrapNoIconThreshold: a card narrower than this also hides its header icon.
SETTINGS_CARD_WRAP_THRESHOLD
SettingsCardWrapThreshold: a card narrower than this shows its content under its header.
SETTINGS_EXPANDER_CHEVRON_BUTTON_HEIGHT
SettingsExpanderChevronButtonHeight.
SETTINGS_EXPANDER_CHEVRON_BUTTON_WIDTH
SettingsExpanderChevronButtonWidth.
SETTINGS_EXPANDER_CHEVRON_TOOL_TIP
SettingsExpanderChevronToolTip.
SETTINGS_EXPANDER_CONTENT_MIN_HEIGHT
SettingsExpanderContentMinHeight.
SETTINGS_EXPANDER_HEADER_PADDING
SettingsExpanderHeaderPadding: left, top, right, bottom.
SETTINGS_EXPANDER_ITEM_BORDER_THICKNESS
SettingsExpanderItemBorderThickness: left, top, right, bottom.
SETTINGS_EXPANDER_ITEM_MIN_HEIGHT
MinHeight of DefaultSettingsExpanderItemStyle.
SETTINGS_EXPANDER_ITEM_PADDING
SettingsExpanderItemPadding: left, top, right, bottom.
SLIDER_DEFAULT_MAXIMUM
Slider_Partial.h: Slider::GetDefaultValue2 raises RangeBase’s Maximum to 100.
SLIDER_DEFAULT_SMALL_CHANGE
Slider_Partial.h: SmallChange, the arrow keys’ step, defaults to 1.
SLIDER_DEFAULT_STEP_FREQUENCY
StepFrequency’s default of 1 is property metadata the repository does not carry (PORTING.md).
SLIDER_FOCUS_VISUAL_MARGIN
FocusVisualMargin of the style, around FocusBorder.
SPRITE_SCALE
The sprite shapes’ TransformMatrix: scale 0.7 then offset (24, 23) for the check layers and (24, 24) for the indeterminate layer.
SWITCH_AREA_MARGIN
SwitchAreaGrid’s Margin="0,5": left, top, right, bottom.
THUMB_BORDER_OVERHANG
SliderThumbStyle: the Margin="-2" its Border grows past the thumb by, on every side.
THUMB_BORDER_THICKNESS
SliderThumbStyle: BorderThickness="1".
TICK_BAR_MARGIN
The tick bars’ Margin away from the track: 0,0,0,4 on TopTickBar, 0,4,0,0 on BottomTickBar, and the same turned on LeftTickBar and RightTickBar.
TOGGLE_BUTTON_FOCUS_VISUAL_MARGIN
The FocusVisualMargin the style sets.
TRACK_HEIGHT
TRACK_WIDTH
OuterBorder and SwitchKnobBounds: the track.
TRIM_END_EASING
CubicBezierEasingFunction_0, easing every TrimEnd keyframe.
TRIM_START_EASING
CubicBezierEasingFunction_1, easing every TrimStart keyframe.

Traits§

ComparableNumberFormatter
A NumberFormatter NumberBox can tell from another: every NumberFormatter with PartialEq is one, so an equal formatter built again leaves the box’s text alone.
FluentRouteTransitionMixin
WinUI’s Frame transition for a PageRoute: Flutter’s MaterialRouteTransitionMixin, for WinUI. A route that implements it plays WinUI’s entrance for its own page and the other storyboards for the page it covers or reveals; it gives the mixin’s overrides to each route trait with [fluent_route_transition_mixin_transition_route_overrides!] and [fluent_route_transition_mixin_modal_route_overrides!].
NumberFormatter
NumberFormatter: what NumberBox’s NumberFormatter property holds, an object that is both an INumberFormatter2 and an INumberParser (NumberBox::ValidateNumberFormatter). NumberBox formats its value with format_double and reads what is typed with parse_double.

Functions§

are_close
DoubleUtil::AreClose: within an epsilon proportional to the values.
check_glyph_duration
How long CheckGlyph takes to reach its size for state: the KeyTime of the state’s SplineDoubleKeyFrame (ControlNormalAnimationDuration for PointerOver and Pressed, ControlFastAnimationDuration for Disabled). Normal declares no size animation, so the glyph returns to its base size at once, as a stopped storyboard releases the property.
check_glyph_size
The size CheckGlyph has in each common state: RadioButtonCheckGlyphSize (12) at rest, the PointerOver storyboard’s 14, the Pressed storyboard’s 10 and the Disabled storyboard’s 14.
color_display_name
The friendly name Windows gives color, as ColorPicker’s spectrum and sliders show it; its alpha is not read.
control_text_style
A text style in the control font, ContentControlThemeFontFamily, at size and weight.
ensure_valid_double
RangeBase::EnsureValidDoubleValue: a range property rejects NaN and the infinities (E_INVALIDARG, ERROR_INVALID_DOUBLE_VALUE).
fast_out_slow_in
XAML ControlFastOutSlowInKeySpline as a curve.
flyout_presenter_sizes
FlyoutPresenter’s style: MinWidth, MinHeight, MaxWidth and MaxHeight from the theme’s FlyoutThemeMinWidth, FlyoutThemeMinHeight, FlyoutThemeMaxWidth and FlyoutThemeMaxHeight.
fractional
DoubleUtil::Fractional: the part after the decimal point, toward zero.
hyperlink_button_brushes
The {ThemeResource …} values the CommonStates storyboards name for state.
inner_thumb_scale
SliderInnerThumb’s CompositeTransform scale per thumb state, and the key time it reaches it with ControlFastOutSlowInKeySpline: 0.86 over ControlFastAnimationDuration (Normal), 1.167 over ControlNormalAnimationDuration (PointerOver), 0.71 over ControlNormalAnimationDuration (Pressed), 1.167 over ControlFastAnimationDuration (Disabled).
install_icon_font
Registers the bundled font before the first icon is laid out.
knob_size
The knob’s size per common state: the storyboards animate SwitchKnobOn and SwitchKnobOff to 12 × 12 (Normal, Disabled), 14 × 14 (PointerOver) and 17 × 14 (Pressed) with ControlFastOutSlowInKeySpline.
knob_size_duration
How long the knob takes to reach knob_size: ControlNormalAnimationDuration into Disabled, ControlFasterAnimationDuration into the other states.
less_than
DoubleUtil::LessThan: strictly less and not close.
less_than_or_close
DoubleUtil::LessThanOrClose.
next_is_checked
The value IsChecked takes after a toggle; ToggleButton::OnToggleImpl: indeterminate becomes unchecked, unchecked becomes checked, and checked becomes indeterminate when IsThreeState and unchecked otherwise.
repeat_button_brushes
The {ThemeResource …} values the CommonStates storyboards name for state.
right_aligned_compact_toggle_switch_style
RightAlignedCompactToggleSwitchStyle, for ToggleSwitch::template: the style a settings card gives the switch in it.
segment_duration
How long AnimatedIcon::PlaySegment plays a segment: the visual’s duration times the marker span.
toggle_button_brushes
The {ThemeResource …} values the CommonStates storyboards name for is_checked (Some(true) the Checked* row, None the Indeterminate* row) and state.
toggle_is_checked
ToggleButton::OnToggleImpl: indeterminate → unchecked; checked → indeterminate when three-state, else unchecked; unchecked → checked.

Type Aliases§

AppBarToggleButtonCheckedHandler
Receives the IsChecked value a toggle asks for: XAML Checked, Unchecked and Indeterminate.
AutoSuggestBoxItemTemplate
Builds an item’s content: ItemTemplate.
AutoSuggestBoxOpenChangedHandler
Asked to open or close the list, for an application that owns is_suggestion_list_open.
AutoSuggestBoxQuerySubmittedHandler
Handles QuerySubmitted.
AutoSuggestBoxSuggestionChosenHandler
Handles SuggestionChosen.
AutoSuggestBoxTextChangedHandler
Handles TextChanged.
AutoSuggestBoxTextMember
Reads the text of an item: TextMemberPath’s property.
BreadcrumbBarItemClickedHandler
Handler for the original item and index selected by a breadcrumb invocation.
ButtonTemplate
A source control template receiving the button state and its content.
CheckBoxCheckedHandler
The handler for XAML Checked, Unchecked and Indeterminate, given the IsChecked the control wants.
ColorBuilder
Builds the subtree for the colour currently shown.
ColorPickerColorChangedHandler
Receives XAML ColorPicker.ColorChanged.
ColorSpectrumColorChangedHandler
Receives XAML ColorSpectrum.ColorChanged.
ComboBoxDropDownOpenChangedHandler
Asks the application to open or close a drop-down it owns.
ComboBoxSelectionChangedHandler
Receives XAML SelectionChanged.
ComboBoxTextSubmittedHandler
Receives XAML TextSubmitted.
CommandBarOpenChangedHandler
Receives the IsOpen value the bar asks for.
ContentDialogButtonClickDeferral
ContentDialogButtonClickDeferral: what ContentDialogButtonClickEventArgs::get_deferral gives.
ContentDialogButtonClickHandler
Receives a command button’s cancelable click.
ContentDialogClosedHandler
Receives the Closed event.
ContentDialogClosingDeferral
ContentDialogClosingDeferral: what ContentDialogClosingEventArgs::get_deferral gives.
ContentDialogClosingHandler
Receives the cancelable Closing event.
DynamicOverflowItemsChangingHandler
Receives XAML DynamicOverflowItemsChanging.
ExpanderExpandedChangedHandler
Requests an owner update to IsExpanded.
ExpanderTemplate
An Expander ControlTemplate replacing DefaultExpanderStyle’s, as another style sets one; the Expander keeps its expanding and collapsing of the content.
FlyoutClosingHandler
Cancelable source Closing callback.
FlyoutPresenterBuilder
Native presenter customization, replacing a XAML presenter style.
InfoBarClosedHandler
Receives the Closed event.
InfoBarClosingHandler
Receives the cancelable Closing event.
InfoBarOpenChangedHandler
Requests an owner update to IsOpen.
ItemsViewItemInvoked
ItemInvoked: the index of the item invoked.
ItemsViewItemTemplate
Builds the ItemContainer of the item at an index: XAML’s ItemTemplate over ItemsSource.
MenuBarItemFlyout
MenuBarItemFlyout has the same public behavior as MenuFlyout; the controller already retains its presenter.
MenuCheckedChanged
Requested checked value after activating a toggle menu item.
NavigationViewDisplayModeChanged
Reports the effective adaptive display mode.
NavigationViewItemEvent
Receives selection, invocation, expansion or collapse with a stable item identity.
NavigationViewPaneOpenChanged
Requests owner-controlled pane openness.
NavigationViewSelectionChanged
Receives both selection and deselection requests.
NumberBoxValueChangedHandler
Receives XAML ValueChanged.
PressedChangedCallback
Observes a ButtonBase.IsPressed transition.
SelectorBarSelectionChanged
Receives the selection a person asks for: an item’s index, or none.
SizeChangedCallback
Receives the previous and current child size after layout; the first previous size is zero.
SliderKeyDownHandler
The OnKeyDown of a control derived from Slider, for a key press or repeat: None leaves the key to the slider’s own handling, Some is the result of the key without it.
SliderTemplateBuilder
Builds a Slider ControlTemplate for one set of states, placing SliderContainer with SliderTemplateParts::slider_container.
SplitViewPaneChangedHandler
Receives a requested IsPaneOpen value; the owner applies or rejects the change.
SplitViewPaneClosingHandler
Receives PaneClosing arguments before a light-dismiss close request is applied.
StatesBuilder
Builds the control’s template for the current states.
TabViewDragFeedbackBuilder
Builds an independent native drag avatar at the measured tab width.
TabViewReorderRequested
Receives an owner-managed collection reorder request.
TabViewSelectionChanged
Requests selection of an item, or no item when the collection becomes empty.
TabViewTabCloseRequested
Receives a close request before the item’s CloseRequested callback.
TabViewTabDragCompleted
Receives the final acceptance of a completed drag.
TabViewTabDragStarting
Receives a cancelable drag-start event.
TabViewTabDroppedOutside
Receives an item dropped without an accepted target.
TabViewTabStripDragOver
Decides whether a strip accepts an incoming item.
TabViewTabStripDrop
Transfers an accepted incoming item to its owner.
TableViewCellTemplate
Builds a template column’s cell for an item: XAML’s CellTemplate.
TableViewEmptyTemplate
Builds what an empty table shows: XAML’s EmptyTemplate.
TableViewSelectionChangedHandler
Receives XAML SelectionChanged.
TableViewSortedHandler
Receives XAML Sorted.
TableViewSortingHandler
Receives XAML Sorting.
TextChangedCallback
Notification of a user edit after the native controller updates.
TextSelectionChangedCallback
Notification of a native selection change and its input cause.
ThumbToolTipValueConverter
Rust equivalent of ThumbToolTipValueConverter, returning the displayed value text.
ToggleButtonCheckedHandler
The Checked, Unchecked and Indeterminate events as one handler, given the value the button wants.
ToggleButtonTemplate
Builds a source ToggleButton template while retaining native toggle and keyboard behavior.
ToggleSplitButtonCheckedHandler
Reports the requested checked value before the primary Click callback.
ToggleSwitchTemplate
A ToggleSwitch ControlTemplate replacing DefaultToggleSwitchStyle’s, as a style based on it sets one; the switch keeps its tap, drag and keyboard behaviour.
ToggledHandler
XAML Toggled handler, given the value the switch wants.
TreeViewCollapsedHandler
Receives XAML Collapsed.
TreeViewDragItemsCompletedHandler
Receives XAML DragItemsCompleted.
TreeViewDragItemsStartingHandler
Receives XAML DragItemsStarting.
TreeViewExpandingHandler
Receives XAML Expanding.
TreeViewItemInvokedHandler
Receives XAML ItemInvoked.
TreeViewMoveRequestedHandler
Receives the moves the tree asks the application to make.
TreeViewSelectionChangedHandler
Receives XAML SelectionChanged.
ValueChangedHandler
XAML ValueChanged handler, given the value the slider wants.