HorizontalContentAlignment after Q3 Update

5 posts, 0 answers
  1. matteo
    matteo avatar
    3 posts
    Member since:
    Nov 2006

    Posted 28 Oct 2013 Link to this post

    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
  2. Steven
    Steven avatar
    10 posts
    Member since:
    Mar 2011

    Posted 28 Oct 2013 Link to this post

    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
  3. DevCraft banner
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 30 Oct 2013 Link to this post

    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 >>
  5. matteo
    matteo avatar
    3 posts
    Member since:
    Nov 2006

    Posted 30 Oct 2013 Link to this post

    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!
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 31 Oct 2013 Link to this post

    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 >>
Back to Top
DevCraft banner