Binding to static property

后端 未结 12 2303
夕颜
夕颜 2020-11-22 05:14

I\'m having a hard time binding a simple static string property to a TextBox.

Here\'s the class with the static property:



        
12条回答
  •  萌比男神i
    2020-11-22 05:30

    You can use ObjectDataProvider class and it's MethodName property. It can look like this:

    
       
    
    

    Declared object data provider can be used like this:

    
    

提交回复
热议问题