You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm moving my codebase back to MahApps after rolling my own window styles for a while and I have a question about WindowCommands.
Is it possible to bind them to a ViewModel? I would like certain windows to show only certain buttons, but I can't for the life of me figure out how to get the WindowCommands to show when bound to a WindowCommands object.
When I bind them to WindowCommands objects in this way I don't see anything.
If I set the same objects directly to the MetroWindow.LeftWindowCommands or MetroWindow.RightWindowCommands in code behind it works. I feel like there's something I'm just not seeing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm moving my codebase back to MahApps after rolling my own window styles for a while and I have a question about WindowCommands.
Is it possible to bind them to a ViewModel? I would like certain windows to show only certain buttons, but I can't for the life of me figure out how to get the WindowCommands to show when bound to a WindowCommands object.
When I bind them to WindowCommands objects in this way I don't see anything.
If I set the same objects directly to the MetroWindow.LeftWindowCommands or MetroWindow.RightWindowCommands in code behind it works. I feel like there's something I'm just not seeing.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions