mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-27 04:41:15 +08:00
merge
This commit is contained in:
@@ -23,12 +23,6 @@ namespace System.Application.UI.ViewModels
|
||||
/// </summary>
|
||||
public static bool IsInDesignMode { get; set; }
|
||||
|
||||
protected static TViewModel GetViewModel<TViewModel>() where TViewModel : ViewModelBase, new()
|
||||
{
|
||||
if (IsInDesignMode) return new TViewModel();
|
||||
return DI.Get<TViewModel>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 释放该实例使用的所有资源
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user