ClassRadTileViewItem
Represents an item in the RadTileView control, providing functionality to manage its visual state, size, selection, and position. This class allows for customizing the appearance and behavior of the tile within a tile view layout, including methods to handle tile state changes, positioning, and event management. It also supports mouse interaction for dragging and toggling states (minimized, restored, and maximized).
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Containers")]
public class RadTileViewItem : HeaderedContentControl
Inheritance: objectRadTileViewItem
Constructors
RadTileViewItem()
Initializes a new instance of the RadTileViewItem class.
Declaration
public RadTileViewItem()
Remarks
Use this constructor to create and initialize a new instance of the RadTileViewItem control.
Fields
HeaderStyleProperty
Identifies the HeaderStyle dependency property.
Declaration
public static readonly DependencyProperty HeaderStyleProperty
Field Value
DependencyProperty
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
DependencyProperty
MinimizedHeightProperty
Identifies the MinimizedHeight dependency property.
Declaration
public static readonly DependencyProperty MinimizedHeightProperty
Field Value
DependencyProperty
MinimizedWidthProperty
Identifies the MinimizedWidth dependency property.
Declaration
public static readonly DependencyProperty MinimizedWidthProperty
Field Value
DependencyProperty
PositionChangedEvent
Occurs when the Position of a RadTileViewItem is changed.
Declaration
public static readonly RoutedEvent PositionChangedEvent
Field Value
RoutedEvent
Remarks
Use this event to detect when the Position of a RadTileViewItem is changed.
PositionProperty
Identifies the Position dependency property.
Declaration
public static readonly DependencyProperty PositionProperty
Field Value
DependencyProperty
PreviewPositionChangedEvent
Occurs before when the Position of a RadTileViewItem is changed.
Declaration
public static readonly RoutedEvent PreviewPositionChangedEvent
Field Value
RoutedEvent
Remarks
Use this event to detect when the Position of a RadTileViewItem is going changed.
PreviewSelectionChangedEvent
Identifies the PreviewSelectionChanged routed event.
Declaration
public static readonly RoutedEvent PreviewSelectionChangedEvent
Field Value
RoutedEvent
PreviewTileStateChangedEvent
Occurs before the TileState of a RadTileViewItem is changed.
Declaration
public static readonly RoutedEvent PreviewTileStateChangedEvent
Field Value
RoutedEvent
Remarks
Use this event to detect when the TileState of a RadTileViewItem is about to be changed changed. In cases when you need to prevent the TileState from changing, you can handle this event.
RestoredHeightProperty
Identifies the RestoredHeight dependency property.
Declaration
public static readonly DependencyProperty RestoredHeightProperty
Field Value
DependencyProperty
RestoredWidthProperty
Identifies the RestoredWidth dependency property.
Declaration
public static readonly DependencyProperty RestoredWidthProperty
Field Value
DependencyProperty
SelectionChangedEvent
Identifies the SelectionChanged routed event.
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
RoutedEvent
TileStateChangedEvent
Occurs when the TileState of a RadTileViewItem is changed.
Declaration
public static readonly RoutedEvent TileStateChangedEvent
Field Value
RoutedEvent
Remarks
Use this event to detect when the TileState of a RadTileViewItem is changed.
TileStateProperty
Identifies the TileState dependency property.
Declaration
public static readonly DependencyProperty TileStateProperty
Field Value
DependencyProperty
Properties
HeaderStyle
Gets or sets the HeaderStyle property.
Declaration
public Style HeaderStyle { get; set; }
Property Value
Style
IsSelected
Gets or sets the IsSelected property.
MinimizedHeight
Gets or sets the height of the item when it is in Minimized state.
Declaration
public double MinimizedHeight { get; set; }
Property Value
The height of the item when it is in Minimized state.
MinimizedWidth
Gets or sets the width of the item when it is in Minimized state.
Declaration
public double MinimizedWidth { get; set; }
Property Value
The width of the item when it is in Minimized state.
ParentTileView
Gets the parent TileView that the item is assigned to.
Declaration
[Browsable(false)]
public RadTileView ParentTileView { get; }
Property Value
Position
Gets or sets the position of the tile.
RestoredHeight
Gets or sets the RestoredHeight property.
RestoredWidth
Gets or sets the RestoredWidth property.
TileState
Gets or sets the TileState property.
Declaration
public TileViewItemState TileState { get; set; }
Property Value
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnIsSelectedChanged(bool, bool)
Maintain attached Selector.IsSelectedProperty property and RadTabItem.IsSelected property synchronized.
OnKeyDown(KeyEventArgs)
Invoked on KeyDown.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
KeyEventArgs
OnPositionChanged(RadRoutedEventArgs)
Raises the event.
Declaration
protected virtual void OnPositionChanged(RadRoutedEventArgs e)
Parameters
e
The RadRoutedEventArgs instance containing the event data.
OnPositionChanged(int, int)
Maintain attached Selector.IsSelectedProperty property and RadTabItem.IsSelected property synchronized.
OnPreviewPositionChanged(RadRoutedEventArgs)
Raises the event.
Declaration
protected virtual bool OnPreviewPositionChanged(RadRoutedEventArgs e)
Parameters
e
The RadRoutedEventArgs instance containing the event data.
Returns
OnPreviewSelectionChanged(SelectionChangedEventArgs)
Raises the event.
Declaration
protected virtual bool OnPreviewSelectionChanged(SelectionChangedEventArgs e)
Parameters
e
SelectionChangedEventArgs
The RadRoutedEventArgs instance containing the event data.
Returns
OnPreviewTileStateChanged(PreviewTileStateChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnPreviewTileStateChanged(PreviewTileStateChangedEventArgs e)
Parameters
e
PreviewTileStateChangedEventArgs
The RadRoutedEventArgs instance containing the event data.
OnSelectionChanged(SelectionChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
e
SelectionChangedEventArgs
The RadRoutedEventArgs instance containing the event data.
OnTileStateChanged(RadRoutedEventArgs)
Raises the event.
Declaration
protected virtual void OnTileStateChanged(RadRoutedEventArgs e)
Parameters
e
The RadRoutedEventArgs instance containing the event data.
OnTileStateChanged(TileViewItemState, TileViewItemState)
Invoked when the TileState property is changed.
Declaration
protected virtual void OnTileStateChanged(TileViewItemState oldValue, TileViewItemState newValue)
Parameters
oldValue
newValue
Events
PositionChanged
Occurs when the Position of a RadTileViewItem is changed.
Declaration
public event EventHandler<RadRoutedEventArgs> PositionChanged
Event Value
PreviewPositionChanged
Occurs when the TileState of a RadTileViewItem is changed.
Declaration
public event EventHandler<RadRoutedEventArgs> PreviewPositionChanged
Event Value
PreviewSelectionChanged
Occurs before the tree item is selected.
Declaration
public event SelectionChangedEventHandler PreviewSelectionChanged
Event Value
SelectionChangedEventHandler
PreviewTileStateChanged
Occurs before the TileState of a RadTileViewItem is changed.
Declaration
public event EventHandler<PreviewTileStateChangedEventArgs> PreviewTileStateChanged
Event Value
SelectionChanged
Occurs after the tree item is selected.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Value
SelectionChangedEventHandler
TileStateChanged
Occurs when the TileState of a RadTileViewItem is changed.
Declaration
public event EventHandler<RadRoutedEventArgs> TileStateChanged
Event Value