Skip to content

Commit

Permalink
SplashWindow: Minimize
Browse files Browse the repository at this point in the history
  • Loading branch information
mat1jaczyyy committed Sep 1, 2019
1 parent 6cb001c commit 45c0be6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Apollo/Windows/SplashWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,7 @@ void Window_KeyDown(object sender, KeyEventArgs e) {
}

void MoveWindow(object sender, PointerPressedEventArgs e) => BeginMoveDrag();

void Minimize() => WindowState = WindowState.Minimized;
}
}
7 changes: 6 additions & 1 deletion Apollo/Windows/SplashWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
<Grid RowDefinitions="Auto,*">
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto">
<Components:PreferencesButton Grid.Column="0" Margin="5 5" x:Name="PreferencesButton" />

<Grid Grid.Column="1" Background="Transparent" PointerPressed="MoveWindow" />
<Components:Close Grid.Column="2" Margin="5 5" Clicked="Close" />

<StackPanel Grid.Column="2" Orientation="Horizontal" Margin="5 5" Spacing="5">
<Components:Minimize Clicked="Minimize" />
<Components:Close Clicked="Close" />
</StackPanel>
</Grid>

<Grid Grid.Row="1" ColumnDefinitions="*,*" Margin="10 0 10 10">
Expand Down

0 comments on commit 45c0be6

Please sign in to comment.