Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions WinUIGallery/Samples/ControlPages/TitleBarPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ private void SetTitleBar(UIElement titlebar, bool forceCustomTitlebar = false)
{
titleBarElement.Visibility = Visibility.Visible;
window.ExtendsContentIntoTitleBar = true;
window.SetTitleBar(titlebar);
window.SetTitleBar(titlebar == null? titleBarElement : titlebar);
Comment thread
HO-COOH marked this conversation as resolved.
Outdated
TitleBarHelper.SetCaptionButtonBackgroundColors(window, Colors.Transparent);
}
else
{
titleBarElement.Visibility = Visibility.Collapsed;
window.ExtendsContentIntoTitleBar = false;
window.SetTitleBar(null);
TitleBarHelper.SetCaptionButtonBackgroundColors(window, null);
}
UpdateButtonText();
Expand Down