Class RadFluidContentControl
The RadFluidContentControl has three content properties which are displayed depending on the available space. Using the adjustable threshold properties, the exact points at which the visible content is switched can be precisely controlled.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
[TelerikToolboxCategory("Containers")]
public class RadFluidContentControl : ContentControl
Constructors
RadFluidContentControl()
Initializes a new instance of the RadFluidContentControl class.
Declaration
public RadFluidContentControl()
Fields
ContentChangeModeProperty
Identifies the ContentChangeMode dependency property.
Declaration
public static readonly DependencyProperty ContentChangeModeProperty
Field Value
System.Windows.DependencyProperty
|
LargeContentProperty
Identifies the LargeContent dependency property.
Declaration
public static readonly DependencyProperty LargeContentProperty
Field Value
System.Windows.DependencyProperty
|
LargeContentTemplateProperty
Identifies the LargeContentTemplate dependency property.
Declaration
public static readonly DependencyProperty LargeContentTemplateProperty
Field Value
System.Windows.DependencyProperty
|
NormalToLargeThresholdProperty
Identifies the NormalToLargeThreshold dependency property.
Declaration
public static readonly DependencyProperty NormalToLargeThresholdProperty
Field Value
System.Windows.DependencyProperty
|
NormalToSmallThresholdProperty
Identifies the NormalToSmallThreshold dependency property.
Declaration
public static readonly DependencyProperty NormalToSmallThresholdProperty
Field Value
System.Windows.DependencyProperty
|
SmallContentProperty
Identifies the SmallContent dependency property.
Declaration
public static readonly DependencyProperty SmallContentProperty
Field Value
System.Windows.DependencyProperty
|
SmallContentTemplateProperty
Identifies the SmallContentTemplate dependency property.
Declaration
public static readonly DependencyProperty SmallContentTemplateProperty
Field Value
System.Windows.DependencyProperty
|
StateProperty
Identifies the State dependency property.
Declaration
public static readonly DependencyProperty StateProperty
Field Value
System.Windows.DependencyProperty
|
TransitionDurationProperty
Declaration
public static readonly DependencyProperty TransitionDurationProperty
Field Value
System.Windows.DependencyProperty
|
TransitionProperty
Declaration
public static readonly DependencyProperty TransitionProperty
Field Value
System.Windows.DependencyProperty
|
VisibleContentProperty
Identifies the VisibleContent readonly dependency property.
Declaration
public static readonly DependencyProperty VisibleContentProperty
Field Value
System.Windows.DependencyProperty
|
VisibleContentTemplateProperty
Declaration
public static readonly DependencyProperty VisibleContentTemplateProperty
Field Value
System.Windows.DependencyProperty
|
Properties
ContentChangeMode
Gets or sets the content change mode.
Declaration
public ContentChangeMode ContentChangeMode { get; set; }
Property Value
ContentChangeMode
The content change mode. |
LargeContent
Gets or sets the content visible when the control is in Large state.
Declaration
public object LargeContent { get; set; }
Property Value
System.Object
The content visible when the control is in Large state. |
LargeContentTemplate
Gets or sets the large content template.
Declaration
public DataTemplate LargeContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The large content template. |
NormalToLargeThreshold
Gets or sets the normal to large threshold.
Declaration
public Size NormalToLargeThreshold { get; set; }
Property Value
System.Windows.Size
The normal to large threshold. |
NormalToSmallThreshold
Gets or sets the normal to small threshold.
Declaration
public Size NormalToSmallThreshold { get; set; }
Property Value
System.Windows.Size
The normal to small threshold. |
SmallContent
Gets or sets the content visible when the control is in Small state.
Declaration
public object SmallContent { get; set; }
Property Value
System.Object
The visible when the control is in Small state. |
SmallContentTemplate
Gets or sets the small content template.
Declaration
public DataTemplate SmallContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The small content template. |
State
Gets or sets the current state of the FluidContentControl.
Declaration
public FluidContentControlState State { get; set; }
Property Value
FluidContentControlState
The state. |
Transition
TransitionDuration
Declaration
public TimeSpan TransitionDuration { get; set; }
Property Value
System.TimeSpan
|
VisibleContent
Gets the currently visible content.
Declaration
public object VisibleContent { get; }
Property Value
System.Object
The visible content. |
VisibleContentTemplate
Gets the currently visible content.
Declaration
public DataTemplate VisibleContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The visible content. |
Methods
MeasureOverride(Size)
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.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
System.Windows.Size
The size that this object determines it needs during layout, based on its calculations of child object allotted sizes. |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnContentChanged(Object, Object)
Raised on content changed.
Declaration
protected override void OnContentChanged(object oldContent, object newContent)
Parameters
System.Object
oldContent
|
System.Object
newContent
|
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
Events
StateChanged
Occurs when the State property of the control is changed.
Declaration
public event EventHandler<FluidContentControlStateChangedEventArgs> StateChanged
Event Type
System.EventHandler<FluidContentControlStateChangedEventArgs>
|