Sun, 29 Sep 2024 18:56:26 +0200
don't add the headerbar to simple windows (GTK)
205
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
1 | <?xml version="1.0" encoding="utf-8"?> |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
2 | <Window |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
3 | x:Class="winui.MainWindow" |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
4 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
5 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
6 | xmlns:local="using:winui" |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
9 | mc:Ignorable="d"> |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
10 | |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
11 | <Window.SystemBackdrop> |
211
5d71a36b833b
add custom titlebar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
207
diff
changeset
|
12 | <MicaBackdrop /> |
205
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
13 | </Window.SystemBackdrop> |
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
14 | |
211
5d71a36b833b
add custom titlebar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
207
diff
changeset
|
15 | <Grid RowDefinitions="Auto, Auto" ColumnDefinitions="*" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
5d71a36b833b
add custom titlebar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
207
diff
changeset
|
16 | <StackPanel x:Name="AppTitleBar" Orientation="Horizontal" Grid.Column="0" Grid.Row="0" Padding="10,5,5,10"> |
221
a82d9beaa94a
add semi-functional pathbar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
211
diff
changeset
|
17 | <TextBlock x:Name="AppTitleTextBlock" Text="Window Title" CanDrag="True"></TextBlock> |
211
5d71a36b833b
add custom titlebar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
207
diff
changeset
|
18 | </StackPanel> |
5d71a36b833b
add custom titlebar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
207
diff
changeset
|
19 | </Grid> |
205
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
20 | </Window> |