Hi Mark,
Thank you for contacting Syncfusion Support.
We have checked the reported case “Horizontal Content Alignment
is not working for Stretch “ with TreeViewAdv using our simple sample and we
were able to reproduce it this behavior. We are currently validating this
behavior and analyzing any workable solution . We will check and update you the
details on or before 21st Nov 2019.
Regards,
Vijayalakshmi V.R.
<syncfusion:TreeViewAdv x:Name="Tree" ItemsSource ="{Binding Items, Mode=TwoWay}" MultiColumnEnable="True" >
<syncfusion:TreeViewAdv.DataContext>
<local:ViewModel/>
</syncfusion:TreeViewAdv.DataContext>
<syncfusion:TreeViewAdv.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Models}">
<ContentControl Content="{Binding}"/>
</HierarchicalDataTemplate>
</syncfusion:TreeViewAdv.ItemTemplate>
<syncfusion:TreeViewAdv.Columns>
<syncfusion:TreeViewColumnCollection>
<syncfusion:TreeViewColumn Width="300" Header="Name">
<syncfusion:TreeViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
</syncfusion:TreeViewColumn.CellTemplate>
</syncfusion:TreeViewColumn>
<syncfusion:TreeViewColumn MinWidth="60" Header="Quantity">
<syncfusion:TreeViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Quantity}" HorizontalAlignment="Center"/>
</DataTemplate>
</syncfusion:TreeViewColumn.CellTemplate>
</syncfusion:TreeViewColumn>
<syncfusion:TreeViewColumn MinWidth="60" Header="UnitPrice">
<syncfusion:TreeViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding UnitPrice}"/>
</DataTemplate>
</syncfusion:TreeViewColumn.CellTemplate>
</syncfusion:TreeViewColumn>
<syncfusion:TreeViewColumn MinWidth="100" Header="UnitPriceAmount">
<syncfusion:TreeViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding UnitPriceAmount}"/>
</DataTemplate>
</syncfusion:TreeViewColumn.CellTemplate>
</syncfusion:TreeViewColumn>
</syncfusion:TreeViewColumnCollection>
</syncfusion:TreeViewAdv.Columns>
</syncfusion:TreeViewAdv>
|