Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
How to get tabItemEx from tablecontrol
posted

Hi all

How can I get all tabitemEx from tablecontrol here?

<igWpf:XamRibbonWindow x:Class="CustomCopyNas.Dialog.FolderDialog"
                       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                       xmlns:igWpf="http://schemas.infragistics.com/xaml/wpf"
                       xmlns:classes="clr-namespace:CustomCopyNas.Classes"
                       Title="FolderDialog" Height="500" Width="400" ResizeMode="NoResize"
                       Loaded="FolderDialog_OnLoaded">
    <igWpf:RibbonWindowContentHost x:Name="contentHost"
                                   Theme="Office2013"
                                   igWpf:RibbonWindowContentHost.ApplicationAccentColor="#19A319">

        <Grid Name="RootGrid" Margin="0,0,0,0">
            <TreeView x:Name="_foldersItem" Width="Auto" Background="#FFFFFFFF" BorderBrush="#FFFFFFFF"
                      Foreground="#FFFFFFFF">
                <TreeView.ItemContainerStyle>
                    <Style TargetType="{x:Type TreeViewItem}">
                        <EventSetter Event="MouseDoubleClick" Handler="EventSetter_OnHandler" />
                    </Style>
                </TreeView.ItemContainerStyle>
                <TreeView.Resources>
                    <Style TargetType="{x:Type TreeViewItem}">
                        <Setter Property="HeaderTemplate">
                            <Setter.Value>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <Image Name="img" Width="20" Height="20" Stretch="Fill"
                                               Source="{Binding
                                       RelativeSource={RelativeSource
                                       Mode=FindAncestor,
                                       AncestorType={x:Type TreeViewItem}},
                                       Path=Header,
                                       Converter={x:Static classes:HeaderToImageConverter.Instance}}" />
                                        <TextBlock Text="{Binding}" Margin="5,0" />
                                    </StackPanel>
                                </DataTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </TreeView.Resources>
            </TreeView>
        </Grid>
    </igWpf:RibbonWindowContentHost>
</igWpf:XamRibbonWindow>


thanks

Parents
  • 14517
    Offline posted

    Hello Jean-Pascal,

    I am a little confused on what you are trying to do as your XAML does not contain an actual XamRibbon or a XamTabControl. One short answer would be if you had one of these controls on the page you could use the VisualTreeHelper to walk the tree and get the child items.

    Please let me know what controls you are using and why you would like to get the visual controls representing each tab so that I can be of further assistance.

    Sincerely,

    Valerie

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

Reply Children
No Data