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

TabItem

3 Answers 113 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Márcio Fábio Althmann
Top achievements
Rank 1
Márcio Fábio Althmann asked on 23 Feb 2010, 02:30 PM
Hello
In Visual Studio 2010 using WPF, the control RadTabControl not to create RadTabItem visually, is that normal? And when I click on a TabItem the editor, it does not exchange Tab Editor, I have to do it all in XAML without seeing how you're getting in the visual editor, it's normal?

3 Answers, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 26 Feb 2010, 12:46 PM
Hello Márcio Fábio Althmann,

Unfortunately we don't support adding TabItems in the RadTabControl with the visual editor.
For now, you have to add them with XAML.
Better support for the visual editor of the Visual Studio 2010 is in our plans.

Any additional comments/suggestions are highly appreciated.    

Greetings,
Vladislav
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
David Totzke
Top achievements
Rank 2
answered on 20 Dec 2010, 08:43 PM
I seem to be experiencing this same problem.  I have a UserControl defined as follows:
<UserControl x:Class="TaskManager.UserControl1"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <telerik:RadTabControl>
            <telerik:RadTabItem Header="Tab One">
                <TextBlock Text="Hello Tab 1"/>
            </telerik:RadTabItem>
            <telerik:RadTabItem Header="Tab Two">
                <TextBlock Text="Hello Tab 2"/>
            </telerik:RadTabItem>
        </telerik:RadTabControl>
    </Grid>
</UserControl>

In the designer, clicking on the tab header will not make the tab items switch.  "Tab One"'s content is always displayed although the header of Tab Two does show a focus border when you click on it.  See attached screen capture that shows the focus on the header of Tab Item 2 but the content of Tab Item 1 still showing.

The very strange thing about this is that if I create a new test project and put this user control into it, everything works fine.  I am at a loss as to what could be causing this behaviour. 

VS 2010 Ultimate.
RadControls for WPF Version 2010.3.1110.40

Any ideas?

Regards,
Dave.
0
Tina Stancheva
Telerik team
answered on 23 Dec 2010, 10:51 AM
Hi Dave,

Can you check whether the folder that contains the referenced assemblies in your project, contains the design assemblies as well (you can find them in the Binaries folder of your installation in the design folder)? If it doesn't you should add them as well since they control the design time support of the RadControls. Give this a try and let us know if it helps.

Best wishes,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
TabControl
Asked by
Márcio Fábio Althmann
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
David Totzke
Top achievements
Rank 2
Tina Stancheva
Telerik team
Share this question
or