MinHeight not respected on first load

6 posts, 1 answers
  1. Jim
    Jim avatar
    52 posts
    Member since:
    Apr 2009

    Posted 06 Oct 2009 Link to this post

    First off --- very cool control...

    Here is my RadTileViewItem:
    <telerikNavigation:RadTileViewItem  
        x:Class="xxx.DataViewDisplayTile" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:xxx="clr-namespace:xxx.Web" 
        xmlns:telerikAnimation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls" 
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"    
        > 
        <telerikNavigation:RadTileViewItem.Header> 
            <StackPanel Orientation="Horizontal"
                <Image Source="../Images/data_view.png" Height="20" Width="20"/> 
            <TextBlock x:Name="cHeaderText" Style="{StaticResource TileHeader}" /> 
            </StackPanel> 
        </telerikNavigation:RadTileViewItem.Header> 
        <telerikNavigation:RadTileViewItem.Content> 
            <telerikNavigation:RadFluidContentControl  
                                telerikAnimation:AnimationManager.IsAnimationEnabled="False"  
                                SmallToNormalThreshold="235, 35" 
                                NormalToSmallThreshold="305, 149" 
                                NormalToLargeThreshold="315, 155" 
                                LargeToNormalThreshold="725, 345"
                <telerikNavigation:RadFluidContentControl.SmallContent> 
                    <TextBlock Text="Dataview Display Small" /> 
                </telerikNavigation:RadFluidContentControl.SmallContent> 
                <telerikNavigation:RadFluidContentControl.Content> 
                    <TextBlock Text="DataView Display Medium" /> 
                </telerikNavigation:RadFluidContentControl.Content> 
                <telerikNavigation:RadFluidContentControl.LargeContent> 
                    <xxx:DataViewDisplay x:Name="cDataViewDisplay" MinHeight="350"/> 
                </telerikNavigation:RadFluidContentControl.LargeContent> 
            </telerikNavigation:RadFluidContentControl> 
        </telerikNavigation:RadTileViewItem.Content> 
    </telerikNavigation:RadTileViewItem > 

    The underlying xxx:DataViewDisplay is expandable to whatever size is available (it has a top level scroll viewer).

    My goal is that whenever I have at least 350 pixels in height I show this control.

    When the control shows for the first time only and there is < 350 pixels for each tile my LargeContent window shows up.  If I cycle this window to LargeSize (maximize?) and then restore it to "Content"  things display as I would expect.

    So my best guess is that the MinHeight is not being respected for some reason.
  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 07 Oct 2009 Link to this post

    Hello Jim,

    I tested your scenario with the code you provided and everything seems to work fine. The only difference was that I used a Rectangle element in the place of your custom control. Can you send me a sample project with the custom control demonstrating the problem so that I can investigate further?

    Greetings,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Jim
    Jim avatar
    52 posts
    Member since:
    Apr 2009

    Posted 07 Oct 2009 Link to this post

    Hi Tihomir -

    Well some unexpected things occured when I built a test project to reproduce the issue.  First off I don't think this has much to do with MinHeight.  I have attached a sample project that really helps demonstrate the issues I am running into.

    I have changed the thresholds:
    SmallToNormalThreshold="260, 100"   
    NormalToSmallThreshold="260, 100"   
    NormalToLargeThreshold="300, 200"   
    LargeToNormalThreshold="300, 200" 

    The following behaviors seem inconsistent to me:

    1) when I maximize one of the tiles.  resizing the entire browser window doesn't appear to affect the 'minimized' tile's content. 
    2) when all tiles are in 'normal' mode. resizeing the entire browser window works fine to shift between medium and large but never into small mode

    Working with the attached project I determined that having SmalltoNormal and NormalToSmall being different values or NormalToLarge and LargeToNormal being different produces a whole lot of seemingly random behavior (that is to say I can't figure it out).

    It appears that I can't attach .rar files and the project is larger than I would like to try to copy / paste.

    So I have attached the screen shots and you can let me know if you would like the project and how to send it to you.
  5. Answer
    Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 09 Oct 2009 Link to this post

    Hello Jim,

    The reason why you cannot attach your .rar file is because this is a forum post - you are allowed to upload only images up to 2Mb. If you need to send a larger file you should open a support ticket, in which more file types and sizes are allowed.

    Regarding the issue you encountered with the size thresholds, I guess this might be a bug in the FluidContentControl. We are aware of several bugs affecting the thresholds and we are working on them. An updated version of this control will be available in our upcoming Q3 release. I hope the transition problems are not critical for your application.

    Best wishes,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Jim
    Jim avatar
    52 posts
    Member since:
    Apr 2009

    Posted 09 Oct 2009 Link to this post

    I will wait for release. I am certain this is an issue with thresholds at this point. It is a very nice control and I am glad telerik added it.
  7. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 12 Oct 2009 Link to this post

    Hi Jim,

    Thank you for the patience and feedback - we really appreciate it.

    Regards,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
DevCraft banner