Reputation: 5799
I'm working on an application that contains a number of content areas. I want to implement a behavior such that in response to user input, any of these content areas can be toggled to fit the entire application window, and optionally back to its original position again. I experimented with several approaches and none of them seem optimal for me. Here's what I tried to do:
Anyway if anyone knows a better approach I would love to know about it.
Thanks a lot!
Upvotes: 1
Views: 886
Reputation: 15237
In regards to your fourth option: You can hide any window by calling "myWindow.Hide()", it will stay in memory, but the user will not be able to see it. Simply call "myWindow.Show()", when you want it displayed again.
Alternatively, you could try using a Popup control, it would be placed over all your other content. See:
http://roecode.wordpress.com/2008/01/07/wpf-popup-control-part-1-the-quick-and-dirty-way/ http://dotnetslackers.com/Community/blogs/bmains/archive/2007/07/26/Introduction-to-WPF-Popups.aspx
Upvotes: 1