1
我正尝试在登录wpf表单中使用MahApps Spin控件。 但caliburn绑定不起作用。如何将MahApps Spin与Caliburn Micro绑定
<Controls:ProgressRing IsActive="{Binding Busy}" Grid.Row="6" Grid.Column="1" x:Name="Busy"/>
我的模型有类似
bool _busy;
public bool Busy
{
get
{
return _busy;
}
set
{
_busy = value;
NotifyOfPropertyChange(() => _busy);
}
}
public void Login(string username, string password)
{
try
{
Busy = true;
...
但它不能显示WPF窗体上的旋转控件
感谢
我的登录过程已经在后台运行 –
如果我试图改变,例如用户名文本框,它的变化没有问题 –
解答更新。 – devdigital