Skip to content

Which source codes are used to customize titlebar? #1114

Answered by marcelwgn
AkiraVoid asked this question in Q&A
Discussion options

You must be logged in to vote

The custom TitleBar is mainly done by extending the content into the TitleBar:

var window = WindowHelper.GetWindowForElement(element);
window.ExtendsContentIntoTitleBar = isLeftMode;

The displayed Titlebar is created here:

<Border x:Name="AppTitleBar"
Grid.Column="1"
IsHitTestVisible="True"
VerticalAlignment="Top"
Height="{Binding ElementName=NavigationViewControl, Path=CompactPaneLength}"
Canvas.ZIndex="1">
<TextBlock x:Name="AppTitle"
Text="{…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@AkiraVoid
Comment options

@AkiraVoid
Comment options

@marcelwgn
Comment options

@AkiraVoid
Comment options

Answer selected by AkiraVoid
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