Skip to content

Adding TitleBar samples#1984

Merged
niels9001 merged 15 commits intomainfrom
niels9001/titlebar-samples
Aug 7, 2025
Merged

Adding TitleBar samples#1984
niels9001 merged 15 commits intomainfrom
niels9001/titlebar-samples

Conversation

@niels9001
Copy link
Collaborator

Adding basic samples for the new TitleBar control.

Fixes #1798

@niels9001 niels9001 requested review from Copilot and marcelwgn and removed request for Copilot July 30, 2025 13:48

This comment was marked as outdated.

@niels9001 niels9001 enabled auto-merge (squash) July 30, 2025 13:48
@niels9001 niels9001 requested a review from Copilot July 30, 2025 13:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds basic sample code for the new TitleBar control to the WinUI Gallery application. The samples demonstrate how to use the TitleBar control with various configuration options and interactive features.

Key changes:

  • Replace existing custom titlebar implementation with TitleBar control examples
  • Add end-to-end TitleBar sample in a new window
  • Update control metadata to reflect TitleBar control usage

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
WinUIGallery.csproj Add new TitleBarWindow.xaml as a compiled page
TitleBarWindow.xaml Sample window implementation showing TitleBar usage with NavigationView
TitleBarWindow.xaml.cs Code-behind for TitleBar sample window with navigation logic
ControlInfoData.json Update TitleBar control metadata and documentation links
TitleBarPage.xaml.cs Simplify to only show new TitleBar window sample
TitleBarPage.xaml Replace complex custom titlebar samples with TitleBar control examples

@Zakariathr22
Copy link
Contributor

We’re still experiencing this issue microsoft/microsoft-ui-xaml#10374

@marcelwgn
Copy link
Contributor

/azp run

@niels9001 niels9001 merged commit 69c444c into main Aug 7, 2025
2 checks passed
@niels9001 niels9001 deleted the niels9001/titlebar-samples branch August 7, 2025 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Samples for new TitleBar control

4 participants