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>
|
||||
<MicaBackdrop />
|
||||
</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">
|
||||
<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" />
|
||||
@@ -50,4 +59,5 @@
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -25,6 +25,9 @@ namespace Password_Generator
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
ExtendsContentIntoTitleBar = true;
|
||||
SetTitleBar(AppTitleBar);
|
||||
|
||||
_loaded = true;
|
||||
GeneratePassword();
|
||||
|
||||
|
||||
Reference in new issue
Block a user