URGENT: Silverlight 4 update changes the look

4 posts, 0 answers
  1. Abdulrahman Omran
    Abdulrahman Omran avatar
    15 posts
    Member since:
    Jan 2011

    Posted 26 Apr 2011 Link to this post

    Hi,

    A few users have updated their silverlight 4 version from (4.0.51204.0) to (4.0.60310.0) and all of a sudden the tileviews started to look differently.

    Attached are two images to illustrate the changes in the visual aspects between silverligth 4.0.51204.0 and 4.0.60310.0.

    p.s. with some testing i found that this issue appears when using the telerik controls release last week (2011.1 419).


    I would love to hear from you asap as clients are already using the system and updating to the newest silverlight version is something I can't control.


    Thank you,
    Abdul

  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 27 Apr 2011 Link to this post

    Hi Abdulrahman Omran,

     Could you please try to set the MinimizedRowHeight property of the RadTileView to something like 50? If this doesn't help I'd like to ask you to give us some code snippets on how you define the RadTileView and its items and tell us with which version of the dlls was the correct behavior observed. 

    Kind regards,
    Zarko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Abdulrahman Omran
    Abdulrahman Omran avatar
    15 posts
    Member since:
    Jan 2011

    Posted 27 Apr 2011 Link to this post

    Hi Zarko,

    I already set the MinimizedRowHeight to 42 and unfortunately this doesn't solve the issue. 
    The correct behaviour was observed on version 2011.1.0315.1040 of the dlls. 

    I will try to prepare a sample solution that illustrates the issue. 

    Kindest Regards,
    Abdul 
  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 03 May 2011 Link to this post

    Hi Abdulrahman Omran,

     Could you tell us if you set Height or VerticalAlignment because I was able to get a result similar to yours only with this combination:

    <telerik:RadTileView x:Name="myTileView"
                MaximizeMode="One"
                MinimizedItemsPosition="Top"
                MinimizedRowHeight="42"
                PreservePositionWhenMaximized="True"
                TilesStateChanged="myTileView_TilesStateChanged">
        <telerik:RadTileViewItem Height="400" VerticalAlignment="Bottom">1</telerik:RadTileViewItem>
        <telerik:RadTileViewItem >2</telerik:RadTileViewItem>
        <telerik:RadTileViewItem >3</telerik:RadTileViewItem>
    </telerik:RadTileView>
    and 
    private void myTileView_TilesStateChanged(object sender, Telerik.Windows.RadRoutedEventArgs e)
    {
        foreach (var item in this.myTileView.Items)
        {
            var container = this.myTileView.ItemContainerGenerator.ContainerFromItem(item) as RadTileViewItem;
     
            if (container != null)
            {
                if (container.TileState == TileViewItemState.Maximized)
                {
                    container.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;
                    container.Height = 400;
                }
                else
                {
                    container.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
                    container.Height = double.NaN;
                }
            }
        }
    }
    If this not the case I'm not sure if I'll be able to help you until we get some more information.
    If you need further assistance please feel free to ask.


    Greetings,
    Zarko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top