Replies: 1 comment 3 replies
-
Set IsHitTestVisible="False" and do not set the background: <Grid Grid.Row="0" Height="32" VerticalAlignment="Top" HorizontalAlignment="Stretch" x:Name="CustomDragRegion" IsHitTestVisible="False">
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="20" Text="YOUR APP TITLE GOES HERE"></TextBlock>
</Grid> Additionally, the new SetTitleBar()-Feature is a little 'dumb', e.g. its not possible to set the Titlebar to be the content of <TabView.TabStripFooter>, even if you set IsHitTestVisible="False", because the whole TabView itself is 'HitTestVisible' :( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am following the example here:
https://docs.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.window.settitlebar?view=winui-3.0-preview
I can drag the window and right click to show the context menu. The caption buttons are visible, but the entire area around the buttons is not responsive to clicking or dragging,
Is there a more complete example available that shows customizing the TitleBar and utilizing the caption buttons?
Win32 Desktop
Beta Was this translation helpful? Give feedback.
All reactions