This commit is contained in:
rmbgame
2021-05-07 23:07:47 +08:00
parent 63ac0695bb
commit 9faa8a8738
3 changed files with 10 additions and 1 deletions
@@ -194,6 +194,14 @@
</TreeView.ItemTemplate>
</TreeView>-->
<Panel>
<StackPanel IsVisible="{Binding IsSteamAppsEmpty}"
HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="10">
<controls:ProgressRing IsIndeterminate="True"
Width="150" Height="150">
</controls:ProgressRing>
<TextBlock Text="正在加载游戏列表..."></TextBlock>
</StackPanel>
<TextBlock IsVisible="{Binding IsSteamAppsEmpty}"
Text="{ReflectionBinding Path=Res.GameList_IsEmpty,Mode=OneWay,Source={x:Static resx:R.Current}}"
TextWrapping="WrapWithOverflow"
@@ -154,7 +154,7 @@ namespace System.Application.Services
LoadGames(ApiService.OwnsApps(SteamApps.Items));
break;
}
await Task.Delay(2000);
Thread.Sleep(2000);
}
//var mainViewModel = (IWindowService.Instance.MainWindow as WindowViewModel);
@@ -158,6 +158,7 @@ namespace System.Application.UI.ViewModels
set => this.RaiseAndSetIfChanged(ref _SearchText, value);
}
public bool IsSteamAppsLoading => IsSteamAppsEmpty;
public bool IsSteamAppsEmpty => !SteamApps.Any_Nullable();
private ObservableCollection<EnumModel<SteamAppType>> _AppTypeFiltres = new();