Visibility Autobinding with naming convention

后端 未结 2 1046
长情又很酷
长情又很酷 2021-02-07 08:18

I really like Caliburn and the naming convention binding and was surprised that the Visibility is not bound in the same way the \"CanNAME\" Convention is used to guard an Acti

2条回答
  •  有刺的猬
    2021-02-07 09:07

    You could use this approach if you wanted, it's perfectly reasonable. Another approach is to use a Border with the same name as a boolean property on your view model. Caliburn.Micro will set the visibility of the Border based on the value of the boolean property.

    
      
    
    

提交回复
热议问题