RadTileViewItem
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
Initializes a new instance of the RadTileViewItem class.
public RadTileViewItem()
Use this constructor to create and initialize a new instance of the RadTileViewItem control.
Fields
HeaderStyleProperty
DependencyProperty
Identifies the HeaderStyle dependency property.
public static readonly DependencyProperty HeaderStyleProperty
IsSelectedProperty
DependencyProperty
Identifies the IsSelected dependency property.
public static readonly DependencyProperty IsSelectedProperty
MinimizedHeightProperty
DependencyProperty
Identifies the MinimizedHeight dependency property.
public static readonly DependencyProperty MinimizedHeightProperty
MinimizedWidthProperty
DependencyProperty
Identifies the MinimizedWidth dependency property.
public static readonly DependencyProperty MinimizedWidthProperty
PositionChangedEvent
RoutedEvent
Occurs when the Position of a RadTileViewItem is changed.
public static readonly RoutedEvent PositionChangedEvent
Use this event to detect when the Position of a RadTileViewItem is changed.
PositionProperty
DependencyProperty
Identifies the Position dependency property.
public static readonly DependencyProperty PositionProperty
PreviewPositionChangedEvent
RoutedEvent
Occurs before when the Position of a RadTileViewItem is changed.
public static readonly RoutedEvent PreviewPositionChangedEvent
Use this event to detect when the Position of a RadTileViewItem is going changed.
PreviewSelectionChangedEvent
RoutedEvent
Identifies the PreviewSelectionChanged routed event.
public static readonly RoutedEvent PreviewSelectionChangedEvent
PreviewTileStateChangedEvent
RoutedEvent
Occurs before the TileState of a RadTileViewItem is changed.
public static readonly RoutedEvent PreviewTileStateChangedEvent
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
DependencyProperty
Identifies the RestoredHeight dependency property.
public static readonly DependencyProperty RestoredHeightProperty
RestoredWidthProperty
DependencyProperty
Identifies the RestoredWidth dependency property.
public static readonly DependencyProperty RestoredWidthProperty
SelectionChangedEvent
RoutedEvent
Identifies the SelectionChanged routed event.
public static readonly RoutedEvent SelectionChangedEvent
TileStateChangedEvent
RoutedEvent
Occurs when the TileState of a RadTileViewItem is changed.
public static readonly RoutedEvent TileStateChangedEvent
Use this event to detect when the TileState of a RadTileViewItem is changed.
TileStateProperty
DependencyProperty
Identifies the TileState dependency property.
public static readonly DependencyProperty TileStateProperty
Properties
HeaderStyle
Style
Gets or sets the HeaderStyle property.
public Style HeaderStyle { get; set; }
Gets or sets the IsSelected property.
public bool IsSelected { get; set; }
Gets or sets the height of the item when it is in Minimized state.
public double MinimizedHeight { get; set; }
The height of the item when it is in Minimized state.
Gets or sets the width of the item when it is in Minimized state.
public double MinimizedWidth { get; set; }
The width of the item when it is in Minimized state.
Gets the parent TileView that the item is assigned to.
[Browsable(false)]
public RadTileView ParentTileView { get; }
Gets or sets the position of the tile.
public int Position { get; set; }
The position.
Gets or sets the RestoredHeight property.
public double RestoredHeight { get; set; }
Gets or sets the RestoredWidth property.
public double RestoredWidth { get; set; }
Gets or sets the TileState property.
public TileViewItemState TileState { get; set; }
Methods
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()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
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.
Invoked on KeyDown.
protected override void OnKeyDown(KeyEventArgs e)
Raises the event.
protected virtual void OnPositionChanged(RadRoutedEventArgs e)
The RadRoutedEventArgs instance containing the event data.
Raises the event.
protected virtual bool OnPreviewPositionChanged(RadRoutedEventArgs e)
The RadRoutedEventArgs instance containing the event data.
Returns:Raises the event.
protected virtual bool OnPreviewSelectionChanged(SelectionChangedEventArgs e)
The RadRoutedEventArgs instance containing the event data.
Returns:Raises the event.
protected virtual void OnPreviewTileStateChanged(PreviewTileStateChangedEventArgs e)
The RadRoutedEventArgs instance containing the event data.
Raises the event.
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
The RadRoutedEventArgs instance containing the event data.
Raises the event.
protected virtual void OnTileStateChanged(RadRoutedEventArgs e)
The RadRoutedEventArgs instance containing the event data.
Invoked when the TileState property is changed.
protected virtual void OnTileStateChanged(TileViewItemState oldValue, TileViewItemState newValue)
Events
Occurs when the Position of a RadTileViewItem is changed.
public event EventHandler<RadRoutedEventArgs> PositionChanged
Occurs when the TileState of a RadTileViewItem is changed.
public event EventHandler<RadRoutedEventArgs> PreviewPositionChanged
PreviewSelectionChanged
SelectionChangedEventHandler
Occurs before the tree item is selected.
public event SelectionChangedEventHandler PreviewSelectionChanged
Occurs before the TileState of a RadTileViewItem is changed.
public event EventHandler<PreviewTileStateChangedEventArgs> PreviewTileStateChanged
SelectionChanged
SelectionChangedEventHandler
Occurs after the tree item is selected.
public event SelectionChangedEventHandler SelectionChanged
Occurs when the TileState of a RadTileViewItem is changed.
public event EventHandler<RadRoutedEventArgs> TileStateChanged