Keep two textboxes synchronized in WPF

后端 未结 2 1949
谎友^
谎友^ 2020-12-17 18:19

I have two textboxes which I want to keep synchronized i.e. the content of both the textboxes should be exactly same. If one textbox changes the other textbox content should

2条回答
  •  渐次进展
    2020-12-17 19:08

    If that is what you want to do, WPF will let you do it:

    
        
            
            
        
    
    

    The ElementName syntax is a very powerful addition to the basic approach of binding to properties in the DataContext. Many crazy things become possible.

提交回复
热议问题