This is a migrated thread and some comments may be shown as answers.

HorizontalContentAlignment after Q3 Update

4 Answers 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
matteo
Top achievements
Rank 1
matteo asked on 28 Oct 2013, 10:40 AM
Hi, I am using HierarchicalDataTemplate and custom ItemContainerStyle for the telerik treeview. It seems after the update to Q3 2013 the style is ignored. My items in the treeview are not stretched to whole available space any more.

<Style TargetType="telerik:RadTreeViewItem" x:Name="RadTreeItemStyle" x:Key="RadTreeItemStyle">
            <Setter Property="HorizontalContentAlignment" Value="Stretch" />
...
</Style>

Thanks in advance!

Cheers,
M

4 Answers, 1 is accepted

Sort by
0
Steven
Top achievements
Rank 1
answered on 28 Oct 2013, 04:44 PM
Hi,

I too have just encountered this issue while upgrading to SL5 and the Windows 8 theme. Any workarounds possible to fix this?

Cheers,

Steven
0
Petar Mladenov
Telerik team
answered on 30 Oct 2013, 12:53 PM
Hello Matej,Steven,

 We tried to reproduce this issue with Q3 2013 dlls but we did not manage. Could you please check our project and let us know if we have missed something ? This way we would be better able to assit you.

Regards,
Petar Mladenov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
matteo
Top achievements
Rank 1
answered on 30 Oct 2013, 02:00 PM
Hello Petar,
thank you for your answer!

You example is missing something, because I wasn't clear enough in my original post. The control (TextBlock) defined in your DataTemplate also doesn't stretch horizontally. Please try putting the border around it, like in the code snippet here, and observe the result:
<DataTemplate x:Key="Usertemplate">
   <Border BorderBrush="Black" BorderThickness="1">
      <TextBlock Text="{Binding Name}" FontSize="12" FontWeight="Bold" Foreground="Green" />
   </Border>
</DataTemplate>
You should notice the border extends only to the space needed, but I would like it to extend to the whole available area (this was the old behavior).

Please see the picture attached. The screenshot on the bottom was taken while running the sample with previous version of Telerik binaries.

Regards!
0
Petar Mladenov
Telerik team
answered on 31 Oct 2013, 09:09 AM
Hello matteo,

 Thanks for your explanation. Actually yesterday we found a binding issue in our Style that most probably is the root cause of this wrong behavior. We will do our best to have this fixed for the next week's internal build as well as in the ServicePack next in mid November.
Please excuse us for the inconvenience caused.

Regards,
Petar Mladenov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
TreeView
Asked by
matteo
Top achievements
Rank 1
Answers by
Steven
Top achievements
Rank 1
Petar Mladenov
Telerik team
matteo
Top achievements
Rank 1
Share this question
or