TabControl CompositeCollection

4 posts, 0 answers
  1. AdaDog
    AdaDog avatar
    33 posts
    Member since:
    Feb 2010

    Posted 27 Apr 2011 Link to this post

    Does the TabControl.ItemsSource property support CompositeCollection?


    <
    TabControl>
        <TabControl.ItemsSource>
            <CompositeCollection>
                <TabItem Header="Extra Tab" />
                <CollectionContainer Collection="{Binding Items}" />
            </CompositeCollection>
        </TabControl.ItemsSource>
    </TabControl>>
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 03 May 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. AdaDog
    AdaDog avatar
    33 posts
    Member since:
    Feb 2010

    Posted 24 May 2011 Link to this post

    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>

  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 25 May 2011 Link to this post

    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
Back to Top