WPF Popup hiding problem

后端 未结 6 1617
耶瑟儿~
耶瑟儿~ 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:22

    Ok, here is some code that works for me (those are copy-pasted from working code with some of the not-interesting parts removed):

    Here's the content of a ComboBox-like UserControl:

     
       
            
    
    

    And from a custom template to an actual ComboBox:

    
     
     
    

提交回复
热议问题