New to Telerik UI for WPFStart a free 30-day trial

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:

C#
[TelerikToolboxCategory("Containers")]
public class RadTileViewItem : HeaderedContentControl

Inheritance: objectRadTileViewItem

Constructors

Initializes a new instance of the RadTileViewItem class.

C#
public RadTileViewItem()
Remarks:

Use this constructor to create and initialize a new instance of the RadTileViewItem control.

Fields

HeaderStyleProperty

DependencyProperty

Identifies the HeaderStyle dependency property.

C#
public static readonly DependencyProperty HeaderStyleProperty

IsSelectedProperty

DependencyProperty

Identifies the IsSelected dependency property.

C#
public static readonly DependencyProperty IsSelectedProperty

MinimizedHeightProperty

DependencyProperty

Identifies the MinimizedHeight dependency property.

C#
public static readonly DependencyProperty MinimizedHeightProperty

MinimizedWidthProperty

DependencyProperty

Identifies the MinimizedWidth dependency property.

C#
public static readonly DependencyProperty MinimizedWidthProperty

Occurs when the Position of a RadTileViewItem is changed.

C#
public static readonly RoutedEvent PositionChangedEvent
Remarks:

Use this event to detect when the Position of a RadTileViewItem is changed.

PositionProperty

DependencyProperty

Identifies the Position dependency property.

C#
public static readonly DependencyProperty PositionProperty

Occurs before when the Position of a RadTileViewItem is changed.

C#
public static readonly RoutedEvent PreviewPositionChangedEvent
Remarks:

Use this event to detect when the Position of a RadTileViewItem is going changed.

Identifies the PreviewSelectionChanged routed event.

C#
public static readonly RoutedEvent PreviewSelectionChangedEvent

Occurs before the TileState of a RadTileViewItem is changed.

C#
public static readonly RoutedEvent PreviewTileStateChangedEvent
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

DependencyProperty

Identifies the RestoredHeight dependency property.

C#
public static readonly DependencyProperty RestoredHeightProperty

RestoredWidthProperty

DependencyProperty

Identifies the RestoredWidth dependency property.

C#
public static readonly DependencyProperty RestoredWidthProperty

Identifies the SelectionChanged routed event.

C#
public static readonly RoutedEvent SelectionChangedEvent

Occurs when the TileState of a RadTileViewItem is changed.

C#
public static readonly RoutedEvent TileStateChangedEvent
Remarks:

Use this event to detect when the TileState of a RadTileViewItem is changed.

TileStateProperty

DependencyProperty

Identifies the TileState dependency property.

C#
public static readonly DependencyProperty TileStateProperty

Properties

Gets or sets the HeaderStyle property.

C#
public Style HeaderStyle { get; set; }

Gets or sets the IsSelected property.

C#
public bool IsSelected { get; set; }

Gets or sets the height of the item when it is in Minimized state.

C#
public double MinimizedHeight { get; set; }
Property Value:

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.

C#
public double MinimizedWidth { get; set; }
Property Value:

The width of the item when it is in Minimized state.

Gets the parent TileView that the item is assigned to.

C#
[Browsable(false)]
public RadTileView ParentTileView { get; }

Gets or sets the position of the tile.

C#
public int Position { get; set; }
Property Value:

The position.

Gets or sets the RestoredHeight property.

C#
public double RestoredHeight { get; set; }

Gets or sets the RestoredWidth property.

C#
public double RestoredWidth { get; set; }

Gets or sets the TileState property.

C#
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 .

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Maintain attached Selector.IsSelectedProperty property and RadTabItem.IsSelected property synchronized.

C#
protected virtual void OnIsSelectedChanged(bool oldValue, bool newValue)
Parameters:oldValueboolnewValuebool

Invoked on KeyDown.

C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

Maintain attached Selector.IsSelectedProperty property and RadTabItem.IsSelected property synchronized.

C#
protected virtual void OnPositionChanged(int oldPosition, int newPosition)
Parameters:oldPositionintnewPositionint

Raises the event.

C#
protected virtual void OnPositionChanged(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Raises the event.

C#
protected virtual bool OnPreviewPositionChanged(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual bool OnPreviewSelectionChanged(SelectionChangedEventArgs e)
Parameters:eSelectionChangedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual void OnPreviewTileStateChanged(PreviewTileStateChangedEventArgs e)
Parameters:ePreviewTileStateChangedEventArgs

The RadRoutedEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters:eSelectionChangedEventArgs

The RadRoutedEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnTileStateChanged(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Invoked when the TileState property is changed.

C#
protected virtual void OnTileStateChanged(TileViewItemState oldValue, TileViewItemState newValue)
Parameters:oldValueTileViewItemStatenewValueTileViewItemState

Events

Occurs when the Position of a RadTileViewItem is changed.

C#
public event EventHandler<RadRoutedEventArgs> PositionChanged

Occurs when the TileState of a RadTileViewItem is changed.

C#
public event EventHandler<RadRoutedEventArgs> PreviewPositionChanged

PreviewSelectionChanged

SelectionChangedEventHandler

Occurs before the tree item is selected.

C#
public event SelectionChangedEventHandler PreviewSelectionChanged

Occurs before the TileState of a RadTileViewItem is changed.

C#
public event EventHandler<PreviewTileStateChangedEventArgs> PreviewTileStateChanged

SelectionChanged

SelectionChangedEventHandler

Occurs after the tree item is selected. For more information about handling events, see also PreviewSelected.

C#
public event SelectionChangedEventHandler SelectionChanged

Occurs when the TileState of a RadTileViewItem is changed.

C#
public event EventHandler<RadRoutedEventArgs> TileStateChanged