In order to handle CP closing MVVM-style, I was prepared to use the CP HeaderTemplate to include a button to which I could attach a RelayCommand, and hide the stock close button. As of the most current release, is this still the recommended way to do this? How about when the CP is not in the DCH? I haven't tried that yet, but it seems like I wouldn't be able to get the button as far to the right as the stock close button on the floating caption. Thanks.
Hello Darryl,
Thank you for the feedback. I am glad, that you have found a solution to your issue.
Thanks, but I've got this resolved enough for now.
I have been looking into your post!
Just to make sure - you want to change the close button of a Floating Pane of the XamDockManager and you want to bind your own command to the mentioned button?
Would it be possible for you to provide me with a screenshot of the window for which you want to change the close button? This way I would be able to further investigate this issue for you.
Thank you for the cooperation. Looking forward to hearing from you.
I resolved #1 and marked this as answered.
However, if you have any good ideas for #2, please post. I can't figure out how to get a close button near, or even close, to the right border of a floating pane. The header template has limitations. Again, this assumes I need my own button for viewmodel binding.
Please disregard the last post. I'm assuming I must have my own close button to bind to a command in my VM. If so, I have a few problems:
1. How to hide the close button in the DCH. CloseButtonVisibility only works outside the DCH.
2. How to position my close button where, or near, the hidden close button was on the floating panes.