This is a migrated thread and some comments may be shown as answers.

How to load XAML window inside Tab Control Item

2 Answers 289 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
srivalli kothapalli
Top achievements
Rank 1
srivalli kothapalli asked on 12 Feb 2010, 07:05 PM
Hi,

Im using RadTab in my window.xaml page. Im able to create rad tab dynamically in c# code file but now i need to load the other window in the tabitem. can anyone help me please.

Thank You.

2 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 15 Feb 2010, 01:38 PM
Hi Srivalli,

You cannot give a an instance of the Window class as a content to another control. As the exception message says, "Window must be the root of the tree. Cannot add Window as a child of Visual".
Instead, why don't you consider using a UserControl instead of a Window. Let me know if this is a possible solution to your scenario.

Greetings,
Kiril Stanoev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jeff
Top achievements
Rank 1
answered on 22 Sep 2010, 08:41 PM
Srivalli - Can you call me (630-853-1537) or email me (jeff@OnTargetIT.com) ASAP?
Tags
TabControl
Asked by
srivalli kothapalli
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or