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

TabControl CompositeCollection

3 Answers 168 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
AdaDog
Top achievements
Rank 1
AdaDog asked on 27 Apr 2011, 06:16 PM
Does the TabControl.ItemsSource property support CompositeCollection?


<
TabControl>
    <TabControl.ItemsSource>
        <CompositeCollection>
            <TabItem Header="Extra Tab" />
            <CollectionContainer Collection="{Binding Items}" />
        </CompositeCollection>
    </TabControl.ItemsSource>
</TabControl>>

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 03 May 2011, 07:50 AM
Hi Doug Simpson,

I guess you are asking whether this is possible in RadTabControl for WPF. Currently this cannot be achieved in this control. We logged this as a feature request in our PITS where you are able to vote for and this way increase its priority. Thank you for your cooperation. 

Best wishes,
Petar Mladenov
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
AdaDog
Top achievements
Rank 1
answered on 24 May 2011, 07:53 PM
Here's a way to do it.

<TabControl DataContext={Binding}> 
    <TabControl.Resources>
        <CollectionViewSource Source="{Binding Path=Items}" x:Key="ItemsCollectionViewSource"/>
    </TabControl.Resources>
  
    <TabControl.ItemsSource
        <CompositeCollection
            <TabItem Header="Extra Tab" /> 
            <CollectionContainer Collection="{Binding Source={StaticResource ResourceKey=ItemsCollectionViewSource}}" /> 
        </CompositeCollection
    </TabControl.ItemsSource
</TabControl>

0
Petar Mladenov
Telerik team
answered on 25 May 2011, 09:06 AM
Hi Doug Simpson,

Yes, we know this could be achieved in the System.windows.controls.TabControl. Unfortunately, it cannot be achieved in the current telerik`s RadTabControl for WPF.

All the best,
Petar Mladenov
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
Tags
TabControl
Asked by
AdaDog
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
AdaDog
Top achievements
Rank 1
Share this question
or