amitairoa Posted July 28, 2009 Posted July 28, 2009 Hi! I have a WPF application that I'm building in Expression Blend 2. There's a main window (Window 1). On Window 1 there are a number of buttons. Those buttons each open Window 2 in a new window, but depending on each button, Window 2 gets different images/media. Right now, The buttons open Window 2 in a new window. I want to change that. I want the whole application to be built on tabs. So that Window 1 will be in a tab, and the user can click a button and it will open a new tab that has Window 2's contents. And on a different button, it opens another instance Window 2 in a new tab, just with a few changes. Is there a simple and easy way to do this? Please help. Thanks! P.S. If I didn't explain this so well, just ask what I mean. Quote
Administrators PlausiblyDamp Posted July 28, 2009 Administrators Posted July 28, 2009 Could you not convert the second window to a user control and add a tab control to window 1 - then either instantiate different versions of the control in each tab or simple change the style associated with the control when the tab is changed. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
amitairoa Posted July 28, 2009 Author Posted July 28, 2009 Could you not convert the second window to a user control and add a tab control to window 1 - then either instantiate different versions of the control in each tab or simple change the style associated with the control when the tab is changed. How do you convert a window to a user control? I didn't really understand what you meant after that. Thanks. Quote
Administrators PlausiblyDamp Posted August 3, 2009 Administrators Posted August 3, 2009 In blend you can select the relevant controls and then right click on them and select 'Make Control', blend will then do all the hard work for you. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.