Skip to content
Discussion options

You must be logged in to vote

The header bar of an MGWindow is controlled by MGWindow.TitleBarTextBlockElement (displays the text in the header), MGWindow.CloseButtonElement (displays the close button on the right side of the header), and MGWindow.TitleBarElement (the MGDockPanel container that arranges the text block and the close button). (Note: In XAML, these properties are named slightly differently: TitleBarTextBlock, CloseButton, and TitleBar)

To change the background of the entire header, modify the dockpanel's background. To change the background of the exit button, modify the CloseButton's background:

<Window xmlns="clr-namespace:MGUI.Core.UI.XAML;assembly=MGUI.Core"
        xmlns:System="clr-namespace:System…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by snicckers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants