Skip to content

InfoBar from WinUI, inline and on the MetroWindow - #4708

Merged
punker76 merged 4 commits into
developfrom
feat/infobar
Oct 12, 2026
Merged

punker76 merged 4 commits into
developfrom
feat/infobar

Conversation

@punker76

@punker76 punker76 commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

The InfoBar of WinUI, ported to WPF, in the Metro, Windows 10 and WinUI look.

It shows a severity with its colour and icon, a title, a message, an action and a close button. The icons are the WinUI glyphs from the bundled Segoe MDL2 Assets, and Icon or IconTemplate put others in their place.

MetroWindow.InfoBars takes an InfoBarsControl whose bars lie over the top of the content, under the title bar. Flyouts, the overlay and dialogs still lie over them.

The port follows microsoft-ui-xaml, which is MIT licensed, and NOTICE.md names it.

Closes #584

… 10 and the WinUI look

A bar in the layout that tells the user how things stand: a severity with its colour and icon, a title, a message, an action and a close button. Closing raises Closing, which can refuse it, and then Closed, in the order WinUI raises them. The icons are the glyphs of WinUI from the bundled Segoe MDL2 Assets, and Icon or IconTemplate put others in their place.

The three looks share one template. The colours of the severities are new theme resources after InfoBar_themeresources.xaml, and the informational icon takes the accent. The gallery has a page for it, and NOTICE.md names microsoft-ui-xaml, which the control is ported from.
MetroWindow.InfoBars takes an InfoBarsControl, whose bars lie over the top of the content under the title bar, 12 from the edges and 8 apart, and push nothing aside. They sit right after the content and without a ZIndex, so the cover of a modal flyout, the flyouts, the overlay and the dialogs lie over them. Without a title bar they keep clear of the window buttons, and they follow the data context of the window like the flyouts do.

In the host an informational bar takes an opaque ground, the see through one of WinUI laid over the window background, so the content does not show through it. The gallery has a window with two bars and a modal flyout for it.
…the WinUI set

A page that asks for it with HasStyleSets gets a switch in its heading, beside the links, that puts all of its samples into one of the three sets. The cards inherit the set from the page, and the markup shown under them stays the same, since the look comes from the set an application merges. The InfoBar page has it, and its window opens in the set chosen there.
@punker76 punker76 added this to the 3.0.0 milestone Oct 12, 2026
@punker76
punker76 marked this pull request as ready for review October 12, 2026 07:42
@punker76
punker76 merged commit c614d99 into develop Oct 12, 2026
3 of 4 checks passed
@punker76
punker76 deleted the feat/infobar branch October 12, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Notifications in MA.M

1 participant