fix: 修复提示框异步问题

This commit is contained in:
yaobiao
2023-11-29 10:49:52 +08:00
parent 7efb626748
commit b48f6de554
7 changed files with 45 additions and 30 deletions

View File

@@ -1,5 +1,6 @@
using System;
using DownKyi.Images;
using DownKyi.Models;
using DownKyi.Utils;
using Prism.Commands;
using Prism.Mvvm;
@@ -15,16 +16,16 @@ public class BaseDialogViewModel : BindableBase, IDialogAware
public string Title
{
get { return title; }
set { SetProperty(ref title, value); }
get => title;
set => SetProperty(ref title, value);
}
private VectorImage closeIcon;
public VectorImage CloseIcon
{
get { return closeIcon; }
set { SetProperty(ref closeIcon, value); }
get => closeIcon;
set => SetProperty(ref closeIcon, value);
}
#endregion
@@ -33,14 +34,14 @@ public class BaseDialogViewModel : BindableBase, IDialogAware
{
#region
// Title = new AppInfo().Name;
// CloseIcon = new VectorImage
// {
// Height = SystemIcon.Instance().Close.Height,
// Width = SystemIcon.Instance().Close.Width,
// Data = SystemIcon.Instance().Close.Data,
// Fill = SystemIcon.Instance().Close.Fill
// };
Title = new AppInfo().Name;
CloseIcon = new VectorImage
{
Height = SystemIcon.Instance().Close.Height,
Width = SystemIcon.Instance().Close.Width,
Data = SystemIcon.Instance().Close.Data,
Fill = SystemIcon.Instance().Close.Fill
};
#endregion
}