You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cant see any properties to control the built in windows buttons, when changing the theme of the app the buttons become invisible -
2026-02-09.22-05-36.mp4
Steps to Reproduce
Set the app.xaml.cs to the following -
publicpartialclassApp:Application{Window?_mainWindow;publicApp(){InitializeComponent();}protectedoverrideWindowCreateWindow(IActivationState?activationState){_mainWindow=newWindow(newMainPage()){Title="Cockpit",TitleBar=newTitleBar{BackgroundColor=Color.FromArgb("#181818"),ForegroundColor=Color.FromArgb("#CCCCCC"),HeightRequest=48}};return_mainWindow;}publicstaticvoidUpdateTitleBarTheme(stringtheme){App?app=CurrentasApp;if(app?._mainWindow?.TitleBarisTitleBartitleBar){if(theme=="light"){titleBar.BackgroundColor=Color.FromArgb("#F8F8F8");titleBar.ForegroundColor=Color.FromArgb("#3B3B3B");// Update button text colorif(titleBar.TrailingContentisHorizontalStackLayoutstack&&stack.Children.FirstOrDefault()isButtonbtn){btn.TextColor=Color.FromArgb("#3B3B3B");}}else{titleBar.BackgroundColor=Color.FromArgb("#181818");titleBar.ForegroundColor=Color.FromArgb("#CCCCCC");// Update button text colorif(titleBar.TrailingContentisHorizontalStackLayoutstack&&stack.Children.FirstOrDefault()isButtonbtn){btn.TextColor=Color.FromArgb("#CCCCCC");}}}}}
Call UpdateTitleBarTheme withing the app somewhere
Description
Cant see any properties to control the built in windows buttons, when changing the theme of the app the buttons become invisible -
2026-02-09.22-05-36.mp4
Steps to Reproduce
Set the app.xaml.cs to the following -
Call
UpdateTitleBarThemewithing the app somewhereLink to public reproduction project repository
No response
Version with bug
10.0.30
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output