我正在尝试绑定 MVVMCross 对话框部分的 Visible 属性。
var refillSection = new Section() {
new StringElement("Refill").Bind(this, "SelectedCommand OpenExternal")
}.Bind(this, "Visible IsExternal,Converter=Visibility");
root.Add(refillSection);
我也尝试过直接绑定元素的可见性,但也不起作用。
var refillSection = new Section() {
new StringElement("Refill").Bind(this, "SelectedCommand OpenExternal;Visible IsExternal,Converter=Visibility")
};
root.Add(refillSection);
难道我做错了什么?我安装了可见性插件。