WPF Popup hiding problem

后端 未结 6 1545
耶瑟儿~
耶瑟儿~ 2021-01-13 22:59

Suppose you have a ToggleButton for opening a Popup, same behaviour as all known elements as ComboBox etc.

... which is this c

6条回答
  •  礼貌的吻别
    2021-01-13 23:26

    I would bind both guys to the same property in the ViewModel. You can find good example in Toolbox default template:

    
        
            
                
                    
                
            
        
    

    Hope this helps,

    Cheers, Anvaka.

提交回复
热议问题