WindowChrome - Can't click buttons in titlebar

后端 未结 2 1110
一向
一向 2021-01-15 12:42

I have a custom WindowChrome style for my WPF app (ripped from here: http://www.bdevuyst.com/wpf-custom-title-bar-and-taskbar/).

Code here:



        
2条回答
  •  天涯浪人
    2021-01-15 13:15

    It is your command bindings that are the issue here. Don't bind the Command properties. Simply set them:

    
        
        
        
        
    
    

    You will also need a command binding for each of the commands and execute them programmatically as suggested by @Louis Kottmann here:

    In WPF, can I have a borderless window that has regular minimize, maximise and close buttons?

提交回复
热议问题