Tabs in WPF

amitairoa

Newcomer
Joined
Jul 16, 2008
Messages
21
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.
 
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.
 
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.
 
Back
Top