This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -0,0 +1,59 @@
using AntdWpf.Controls;
using Caliburn.Micro;
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Media;
namespace AntdWpfDemo.ViewModels
{
[Export(typeof(IScreen))]
internal class ButtonViewModel : Screen
{
public Sizes? Size { get; set; }
private bool loading1;
public bool Loading1
{
get { return loading1; }
set
{
loading1 = value;
NotifyOfPropertyChange();
}
}
private bool loading2;
public bool Loading2
{
get { return loading2; }
set
{
loading2 = value;
NotifyOfPropertyChange();
}
}
public ButtonViewModel()
{
DisplayName = "Button";
}
public void Click1()
{
Loading1 = true;
var app = Application.Current;
//app.Resources["ButtonPrimaryBrush"] = new SolidColorBrush(Color.FromRgb(114, 46, 209));
app.Resources["PrimaryBrush"] = new SolidColorBrush(Color.FromRgb(114, 46, 209));
}
public void Click2()
{
Loading2 = true;
}
}
}