Make title bar use Mica
This commit is contained in:
2 files changed
+14
-1
No files matched your search
@@ -12,8 +12,17 @@
|
|||||||
<Window.SystemBackdrop>
|
<Window.SystemBackdrop>
|
||||||
<MicaBackdrop />
|
<MicaBackdrop />
|
||||||
</Window.SystemBackdrop>
|
</Window.SystemBackdrop>
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="32"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Grid Margin="16,0,16,0">
|
<Grid x:Name="AppTitleBar" Grid.Row="0" Background="Transparent">
|
||||||
|
<TextBlock Text="Password Generator" VerticalAlignment="Center" Margin="12,0,0,0" FontSize="12"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid Grid.Row="1" Margin="16,0,16,0">
|
||||||
<StackPanel Spacing="12" HorizontalAlignment="Center" Margin="0,36,0,0">
|
<StackPanel Spacing="12" HorizontalAlignment="Center" Margin="0,36,0,0">
|
||||||
<TextBlock Text="Password Generator" FontSize="24" FontWeight="Bold" TextAlignment="Center" />
|
<TextBlock Text="Password Generator" FontSize="24" FontWeight="Bold" TextAlignment="Center" />
|
||||||
<TextBlock Text="Select a length, or use the slider for a custom value." TextAlignment="Center" />
|
<TextBlock Text="Select a length, or use the slider for a custom value." TextAlignment="Center" />
|
||||||
@@ -50,4 +59,5 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
@@ -25,6 +25,9 @@ namespace Password_Generator
|
|||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
ExtendsContentIntoTitleBar = true;
|
||||||
|
SetTitleBar(AppTitleBar);
|
||||||
|
|
||||||
_loaded = true;
|
_loaded = true;
|
||||||
GeneratePassword();
|
GeneratePassword();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user