Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/Wpf.Ui/Controls/LoadingScreen/LoadingScreen.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,32 @@
xmlns:controls="clr-namespace:Wpf.Ui.Controls">

<Style TargetType="{x:Type controls:LoadingScreen}">
<Setter Property="Background" Value="{DynamicResource LoadingScreenForeground}" />

<Setter Property="Background" Value="{DynamicResource LoadingScreenBackground}" />

<Setter Property="Foreground" Value="{DynamicResource AccentBrush}" />

<Setter Property="SnapsToDevicePixels" Value="True" />

<Setter Property="OverridesDefaultStyle" Value="True" />

<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type controls:LoadingScreen}">
<Grid
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
Background="{TemplateBinding Background}">

<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>

<Grid Grid.Column="0" VerticalAlignment="Center">
<controls:ProgressRing IsIndeterminate="True" />
<controls:ProgressRing
IsIndeterminate="True"
Foreground="{TemplateBinding Foreground}" />
</Grid>

<Grid Grid.Column="1" VerticalAlignment="Center">
Expand All @@ -39,5 +47,4 @@
</Setter.Value>
</Setter>
</Style>

</ResourceDictionary>
Loading