This project is read-only.

Fixed column on Treeview

Apr 20, 2016 at 8:15 AM
Dear Sir,
 I am using to display more one column in treeview . As per my scenario second column should not sifted to right as first column sift .
I am really very much appreciate if anyone can help.

Current View
-->Item 1              Not to Sifted
      -->Item 2               Not to Sifted
         -->Item 3                  Not to Sifted
Current View
-->Item 1              Not to Sifted
      -->Item 2        Not to Sifted
         -->Item 3     Not to Sifted
My Code
 <xc:TreeView
        x:Name="tvDataBound"
        Grid.Row="2"
        Grid.Column="1" 
        ItemsSource="{Binding TreeItems}"
        Style="{StaticResource TouchTreeViewStyle}" GotFocus="tvDataBound_GotFocus" 

        Margin="0,0,0,0">
        <xc:TreeView.ItemTemplate>
            <DataTemplate>
                <data:DataTemplateExtensions.Hierarchy>
                    <data:HierarchicalDataTemplate
                        ItemsSource="{Binding Children}" />
                </data:DataTemplateExtensions.Hierarchy>
                <Grid Background="White" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="350"/>
                        <ColumnDefinition Width="350"/>
                    </Grid.ColumnDefinitions>
                    <StackPanel
                    Orientation="Horizontal" Grid.Column="0">

                        <TextBlock
                        Text="{Binding Text}"
                        Foreground="{StaticResource TextBrush}" />
                        <Ellipse 
                        VerticalAlignment="Center"
                        Margin="5"
                        Width="10"
                        Height="10"
                        Fill="{Binding Brush}" />

                    </StackPanel>
                    <StackPanel
                    Orientation="Horizontal" Grid.Column="1">

                        <TextBlock
                        Text="Not to Sifted"
                        Foreground="{StaticResource TextBrush}" />


                    </StackPanel>

                </Grid>
            </DataTemplate>


        </xc:TreeView.ItemTemplate>
    </xc:TreeView>