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

TileView and FluidContentControl switching between Small and Normal content without any reason

5 Answers 79 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Qaiser
Top achievements
Rank 1
Qaiser asked on 29 Jul 2010, 11:04 AM
I got TileView with TileView bound to my ViewModel for Tiles like this

<telerikNavigation:RadTileView x:Name="ContentTileView" Grid.Row="1"
   MinWidth="{Binding ContainerMinWidth}"
   MinimizedItemsPosition="{Binding MinimizedItemPosition}"
            IsItemsAnimationEnabled="{Binding IsAnimantionEnabled}"
   MinHeight="{Binding ContainerMinHeight}"
   MaxColumns="{Binding WidgetColumns}"
   MinimizedColumnWidth="{Binding MinimizedWidth}"
   MinimizedRowHeight="{Binding MinimizedHeight}"
   HorizontalAlignment="Stretch"
   VerticalAlignment="Stretch"
   ItemsSource="{Binding Widgets}">
</telerikNavigation:RadTileView>
MinWidth and MinHeight of TileView are calculated based on number of items.
TileView Content Template is like
<telerikNavigation:RadTileView.ContentTemplate>
<DataTemplate>
<telerik:RadFluidContentControl DataContext="{Binding}"
SmallToNormalThreshold="200,0"
NormalToSmallThreshold="180,0">
<telerik:RadFluidContentControl.Content>
<ContentControl Content="{Binding WidgetContent}"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
VerticalAlignment="Stretch"
VerticalContentAlignment="Stretch" />
</telerik:RadFluidContentControl.Content>
<telerik:RadFluidContentControl.SmallContent>
<ContentControl Content="{Binding SmallWidetContent}"
HorizontalAlignment="Stretch"
         HorizontalContentAlignment="Stretch"
         VerticalAlignment="Stretch"
         VerticalContentAlignment="Stretch">

</ContentControl>
</telerik:RadFluidContentControl.SmallContent>

</telerik:RadFluidContentControl>
</DataTemplate>
</telerikNavigation:RadTileView.ContentTemplate>
Everything seem to work but there is one problem at random times.
For a particular TileViewItem the Small and Normal content seem to flip every half second or
so giving it a flickering affect.
The strange thing is that it only happens to a particular tiles and doesn't affect any other tile.
Also sometime it happens when I maximize a particular Tile or restore that particualr tile.
The Tile which cause problem has got a RadGridView as normal and TextBlock as small content in it
(some other tileviews got RadGridView as well but they seem to work correctly).


I've fixed the problem by setting ContentChangeMode of FluidContentcontrol to manual
but would like to know if there is anything I am doing wrong in automatic mode
which result in the problem.

Regards,

Qaiser.




5 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 29 Jul 2010, 03:34 PM
Hi Qaiser,

Could you try setting the NormalToSmallThreshold to 200,0 because it might cause this flickering effect. For more information could you please read this article and if you have further questions feel free to ask.

On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

Kind regards,
Viktor Tsvetkov
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
0
Qaiser
Top achievements
Rank 1
answered on 29 Jul 2010, 04:31 PM

Hi Viktor, 

Thanks for your quick response!

Based on your suggestion I've set SmallToNormalThreshold and NormalToSmallThreshold to 200,0 but that hasn't made any difference. The strange thing is that it only affect one tile and all the rest of the tiles are fine. 

Can we use Minifier while using Telerik Trial version?

On a side note (being a Silverlight controls vendor) do you have any timescales from Microsoft about this issue http://forums.silverlight.net/forums/t/171739.aspx 

Regards, 

Qaiser.

0
Viktor Tsvetkov
Telerik team
answered on 29 Jul 2010, 04:50 PM
Hi Qaiser,

Could you please send me your sample project so I will be able to better investigate the problem.

About the minifier there is no problem to use it with the trial version of our controls.

We do not have actual information about the memory leak issue, but we are hoping that it will be fixed soon.

Kind regards,
Viktor Tsvetkov
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
0
Qaiser
Top achievements
Rank 1
answered on 30 Jul 2010, 10:57 AM
Hi Viktor,

Thanks for your quick response.

I've tried to recreate the problem in my sample project but to no avail. The issue is it only affect one of the tiles (in my main project) and all the others are ok. If it help I can send you a video capture demonstrating the problem?

Regards,

Qaiser.
0
Kiril Stanoev
Telerik team
answered on 02 Aug 2010, 02:53 PM
Hi Qaiser,

We will not be able to determine the cause for the issue from a video. The best way is if you can isolate the problem in a separate project and send us this project. This way we will be better able to pinpoint the exact cause for the issue. The key to working successfully with RadFluidContentControl is to set the thresholds to the correct values. However, if you feel like you cannot find the proper values for the thresholds, you can always switch the contents manually, as shown in the attached project.

Sincerely yours,
Kiril Stanoev
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
Tags
TileView
Asked by
Qaiser
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Qaiser
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or