Hello Pete Davis,
It would be better to use the FindChildByType()
method to get the RadFluidContentControl
child of the TileViewItem
I also noticed that in the definition of the RadFluidContentControl
the threshold properties are set. However, since you are using the control with RadTileView
, you should keep in mind that using both the threshold properties and the TileStateChanged()
event handler to control the displayed content, inside the RadTileViewItems,
may lead to unexpected behavior. Therefore an additional property should be taken into consideration - ContentChangeMode
. RadFluidContentControl's ContentChangeMode
property allows to manually change the State
of the control, and thus the visible content. Setting the property to "Manual
", tells RadFluidContentControl
to completely disregard its threshold properties, thus making you responsible for switching the visible content. Setting the property to "Automatic
" makes the control use the thresholds again.
You can find more info about the RadFluidContentControl here
In most cases it is better to either set the ContentChangeMode
and control the visible content through the TileStateChanged()
event, or use the threshold properties instead.
However, there are scenarios where both approaches can be used. For example, I noticed that in your RadTileView
definition, the MaximizeMode
is set to One
. In this case, you can use the threshold properties to define how to initially display the TileViewItems
content. Afterwards, when an item is minimized, the RadFluidContentControl ContentChangeMode
can be changed to Manual
thus leaving only the TileStateChanged()
event handler responsible for switching the visible content.
I prepared a sample project illustrating this approach. Please take a look at it and let me know if it works for you or if you need more info.
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items