How can I pass a constant value for 1 binding in multi-binding?

后端 未结 4 1121
时光取名叫无心
时光取名叫无心 2020-12-12 17:14

I have a multi-binding like


    
        
                     


        
4条回答
  •  一个人的身影
    2020-12-12 17:19

    If your value is simply a string, you can specify it as a constant in the Source property of a binding. If it is any other primitive data type, you need to define a static resource and reference this.

    Define the sys namespace in the root of the XAML to point to System in mscorlib, and the following should work:

    
      
        123
      
      
        
          
          
        
      
    
    

提交回复
热议问题