Binding to static property

后端 未结 12 2140
夕颜
夕颜 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条回答
  •  粉色の甜心
    2020-11-22 05:34

    There could be two ways/syntax to bind a static property. If p is a static property in class MainWindow, then binding for textbox will be:

    1.

    
    

    2.

    
    

提交回复
热议问题