fixed ui desyncs
This commit is contained in:
parent
717fa6e111
commit
977f80f5b4
2 changed files with 30 additions and 22 deletions
|
@ -115,7 +115,11 @@
|
|||
</Border>
|
||||
|
||||
<Border Grid.Column="4" Background="#35313d" CornerRadius="10" Name="InfoWindow" Margin="10">
|
||||
<Grid RowDefinitions="*, 350, 20, 20, 20, 20, *">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Name="GameInfoPlaceholder">
|
||||
<TextBlock Text="Select a Game"/>
|
||||
</StackPanel>
|
||||
<Grid RowDefinitions="*, 350, 20, 20, 20, 20, *" Name="GameInfo" IsVisible="False">
|
||||
<Grid Grid.Row="1" ColumnDefinitions="*, 205, *">
|
||||
|
||||
<Button Foreground="White" Grid.Column="0" Content="←" HorizontalAlignment="Center" VerticalAlignment="Center" Click="PrevButton"/>
|
||||
|
@ -138,6 +142,7 @@
|
|||
<TextBlock Foreground="White" Grid.Row="5" Text="" HorizontalAlignment="Center"
|
||||
Name="GameDateTextBlock"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -57,10 +57,13 @@ public partial class MainWindow : Window
|
|||
}
|
||||
}
|
||||
|
||||
private void SwitchView(bool welcome)
|
||||
private void SwitchView(bool placeholder)
|
||||
{
|
||||
GameEdit.IsVisible = !welcome;
|
||||
WelcomePanel.IsVisible = welcome;
|
||||
GameEdit.IsVisible = !placeholder;
|
||||
WelcomePanel.IsVisible = placeholder;
|
||||
|
||||
GameInfo.IsVisible = !placeholder;
|
||||
GameInfoPlaceholder.IsVisible = placeholder;
|
||||
}
|
||||
|
||||
private void SetShowcaseArea()
|
||||
|
|
Loading…
Add table
Reference in a new issue