I have 3 different columns First contains some text block and one row also contains a treeview (see "Clearing Prices" in snap shot attached). second column contains again textblock (its absent in case of treeview child) . Whereas the third columpn contains button which shifts little bit in right . What i want is to i want to allign the data of third column (buttons)just below each other. This disturbance of allignment (shift in right of third column) is due to the child of TreeView ("ClearingPrices").
to do this is :
x: Key = "TreeViewItemStyle" >< Setter Property = "IsExpanded" Value = "True" / >< Setter Property = "Template" Value = "{StaticResource TreeViewItemDefaultTemplate}" / >< /Style> //Important Part <telerik:RadTreeView Grid.Row="0" Name="RadTreeViewObj" Margin="50" Background="{StaticResource BGBrush_1}" BorderBrush="{StaticResource BGBrush_1}" ItemsSource="{Binding EODDataStepsCollection}" SelectionMode="Single" ItemContainerStyle="{StaticResource TreeViewItemStyle}"><telerik:RadTreeView.ItemTemplate><telerik:HierarchicalDataTemplate ItemsSource="{Binding RelatedItems}"><Grid><Grid.ColumnDefinitions><ColumnDefinition Width="Auto" />< ColumnDefinition Width="Auto" />< ColumnDefinition Width="Auto" />< /Grid.ColumnDefinitions><toolkit:BusyIndicator Grid.Column="0" BusyContent="Server requesting ..." IsBusy="{Binding IsRequested}" DisplayAfter="0" Padding="0"><TextBlock Grid.Column="0" Text="{Binding Label}" FontWeight="Bold" Margin="10" Height="23" Width="400" HorizontalAlignment="Left" VerticalAlignment="Center" Visibility="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}" Foreground="{Binding Status, Converter={StaticResource EODStatusFGConverter}}" />< /toolkit:BusyIndicator><TextBlock Grid.Column="1" Text="{Binding StatusLabel}" Margin="10" Height="23" Width="170" HorizontalAlignment="Left" VerticalAlignment="Center" Visibility="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}" Foreground="{Binding Status, Converter={StaticResource EODStatusFGConverter}}" /> //Here is the code for 3rd column < toolkit: BusyIndicator HorizontalAlignment="Right" Grid.Column="2" BusyContent="Server requesting ..." IsBusy="{Binding IsRequested}" DisplayAfter="0" Padding="0">< Button Content="{Binding ButtonLabel}" Style="{StaticResource ButtonStyle_Blue}" Padding="5" Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Visibility="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}" IsEnabled="{Binding StepEnabled}" Command="{Binding ButtonStepCommand}" />< /toolkit:BusyIndicator></Grid>< /telerik:HierarchicalDataTemplate></telerik: RadTreeView.ItemTemplate>< /telerik:RadTreeView>I want to avoid this shifting to right of these buttons(Launch Step) of third column. Why they are shifted right ? (I mean i want to avoid this Rowspan that occurs on treeview click. So that the buttons will be displayed exactly below each other even on clicking the treeview);