The RadFluidContentControl is a specialized content control that dynamically adjusts which of its three content properties is displayed based on the available space. It utilizes customizable thresholds to precisely define the conditions under which the content changes visibility, allowing for seamless transitions between different content states: Small, Normal, and Large. This control is especially useful for responsive designs where the layout adapts to varying screen sizes or layout changes.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
[TelerikToolboxCategory("Containers")]
public class RadFluidContentControl : ContentControl
Inheritance: objectRadFluidContentControl
Constructors
Initializes a new instance of the RadFluidContentControl class.
public RadFluidContentControl()
Fields
ContentChangeModeProperty
DependencyProperty
Identifies the ContentChangeMode dependency property.
public static readonly DependencyProperty ContentChangeModeProperty
LargeContentProperty
DependencyProperty
Identifies the LargeContent dependency property.
public static readonly DependencyProperty LargeContentProperty
LargeContentTemplateProperty
DependencyProperty
Identifies the LargeContentTemplate dependency property.
public static readonly DependencyProperty LargeContentTemplateProperty
NormalToLargeThresholdProperty
DependencyProperty
Identifies the NormalToLargeThreshold dependency property.
public static readonly DependencyProperty NormalToLargeThresholdProperty
NormalToSmallThresholdProperty
DependencyProperty
Identifies the NormalToSmallThreshold dependency property.
public static readonly DependencyProperty NormalToSmallThresholdProperty
SmallContentProperty
DependencyProperty
Identifies the SmallContent dependency property.
public static readonly DependencyProperty SmallContentProperty
SmallContentTemplateProperty
DependencyProperty
Identifies the SmallContentTemplate dependency property.
public static readonly DependencyProperty SmallContentTemplateProperty
StateProperty
DependencyProperty
Identifies the State dependency property.
public static readonly DependencyProperty StateProperty
TransitionDurationProperty
DependencyProperty
Identifies the TransitionDuration dependency property.
public static readonly DependencyProperty TransitionDurationProperty
Returns the TransitionDuration dependency property.
TransitionProperty
DependencyProperty
Identifies the Transition dependency property.
public static readonly DependencyProperty TransitionProperty
Returns the current Transition value of the RadFluidContentControl.
VisibleContentProperty
DependencyProperty
Identifies the VisibleContent readonly dependency property.
public static readonly DependencyProperty VisibleContentProperty
VisibleContentTemplateProperty
DependencyProperty
Identifies the VisibleContentTemplate dependency property.
public static readonly DependencyProperty VisibleContentTemplateProperty
Properties
Gets or sets the content change mode.
public ContentChangeMode ContentChangeMode { get; set; }
The content change mode.
Gets or sets the content visible when the control is in Large state.
public object LargeContent { get; set; }
The content visible when the control is in Large state.
LargeContentTemplate
DataTemplate
Gets or sets the large content template.
public DataTemplate LargeContentTemplate { get; set; }
The large content template.
Gets or sets the normal to large threshold.
public Size NormalToLargeThreshold { get; set; }
The normal to large threshold.
Gets or sets the normal to small threshold.
public Size NormalToSmallThreshold { get; set; }
The normal to small threshold.
Gets or sets the content visible when the control is in Small state.
public object SmallContent { get; set; }
The visible when the control is in Small state.
SmallContentTemplate
DataTemplate
Gets or sets the small content template.
public DataTemplate SmallContentTemplate { get; set; }
The small content template.
Gets or sets the current state of the FluidContentControl.
public FluidContentControlState State { get; set; }
The state.
Gets or sets the transition effect applied when the content of the control changes.
public TransitionProvider Transition { get; set; }
Gets or sets the duration of the transition effect in the RadFluidContentControl.
public TimeSpan TransitionDuration { get; set; }
Gets the currently visible content.
public object VisibleContent { get; }
The visible content.
Methods
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
protected override Size MeasureOverride(Size availableSize)
The available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.
Returns:Size
The size that this object determines it needs during layout, based on its calculations of child object allotted sizes.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Events
Occurs when the State property of the control is changed.
public event EventHandler<FluidContentControlStateChangedEventArgs> StateChanged