【问题标题】:How to set compare binding in xaml?如何在 xaml 中设置比较绑定?
【发布时间】:2016-05-10 07:26:36
【问题描述】:

如何传递属性中的属性比较? 例如:

<label isVisible="some>some2">
<label isVisible="1 == 2">

e.t.c 像角度一样

【问题讨论】:

    标签: xaml data-binding xamarin xamarin.forms


    【解决方案1】:

    属性isVisible 是一个布尔值。

    您可以绑定此属性并在您的视图模型中进行比较,或者您可以在您的 CodeBehind 中执行此操作。

    < label x:Name="yourLabel" >
    
    this.yourLabel.isVisible = true ;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多