【发布时间】:2016-06-21 01:06:14
【问题描述】:
使用 Template10 的 UWP 应用的 viewmodel 中的 propertychanged 触发器通过以下方式触发:
public var Thing{ get { return thing; } set { Set(ref thing, value); } }
Set 函数放在类 bindableBase 中。
如何在用户控件中使用相同的功能?
我尝试了以下方法,但没有奏效:
BindableBase x;
var foo;
public var Foo{ get { return foo; } set { x.Set(ref foo, value); } }
【问题讨论】:
标签: c# uwp template10