WPF中的RibbonCheckBox [英] RibbonCheckBox in WPF
本文介绍了WPF中的RibbonCheckBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我试图绑定RibbonCheckBox的IsChecked属性.当我从UI选中或取消选中它时,属性就被命中了.
但是当我从viewmodel更新属性时,属性会更新,但UI不会刷新.
Hi All,
I am trying to bind the IsChecked property of RibbonCheckBox. When I check or uncheck from the UI it is property is getting hit.
But when i update property from viewmodel, property is getting updated but UI is not getting refreshed.
<ribbon:RibbonCheckBox Label="User Check" x:Name="chkUr" IsChecked="{Binding UserChecked,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,NotifyOnSourceUpdated=True,NotifyOnTargetUpdated=True}" Checked="chkUr_Checked" Unchecked="chkUr_Unchecked">
</ribbon:RibbonCheckBox>
并在相应的视图模型中.
UserChecked = false;
提前谢谢!
问候
Govardhan
And in the corresponding viewmodel.
UserChecked= false;
Thanks in advance!
Regards
Govardhan
推荐答案
已解决.
我再次订阅了.
eventAggregator.GetEvent< reseturs>().Subscribe(LoadUr);
Solved.
I again subscribed it.
eventAggregator.GetEvent<reseturs>().Subscribe(LoadUr);
这篇关于WPF中的RibbonCheckBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文