Class
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:

cs-api-definition
[TelerikToolboxCategory("Containers")]
public class RadTileViewItem : HeaderedContentControl

Inheritance: objectRadTileViewItem

Constructors

RadTileViewItem()

Initializes a new instance of the RadTileViewItem class.

Declaration

cs-api-definition
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

cs-api-definition
public static readonly DependencyProperty HeaderStyleProperty

Field Value

DependencyProperty

IsSelectedProperty

Identifies the IsSelected dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSelectedProperty

Field Value

DependencyProperty

MinimizedHeightProperty

Identifies the MinimizedHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinimizedHeightProperty

Field Value

DependencyProperty

MinimizedWidthProperty

Identifies the MinimizedWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinimizedWidthProperty

Field Value

DependencyProperty

PositionChangedEvent

Occurs when the Position of a RadTileViewItem is changed.

Declaration

cs-api-definition
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

cs-api-definition
public static readonly DependencyProperty PositionProperty

Field Value

DependencyProperty

PreviewPositionChangedEvent

Occurs before when the Position of a RadTileViewItem is changed.

Declaration

cs-api-definition
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

cs-api-definition
public static readonly RoutedEvent PreviewSelectionChangedEvent

Field Value

RoutedEvent

PreviewTileStateChangedEvent

Occurs before the TileState of a RadTileViewItem is changed.

Declaration

cs-api-definition
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

cs-api-definition
public static readonly DependencyProperty RestoredHeightProperty

Field Value

DependencyProperty

RestoredWidthProperty

Identifies the RestoredWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RestoredWidthProperty

Field Value

DependencyProperty

SelectionChangedEvent

Identifies the SelectionChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SelectionChangedEvent

Field Value

RoutedEvent

TileStateChangedEvent

Occurs when the TileState of a RadTileViewItem is changed.

Declaration

cs-api-definition
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

cs-api-definition
public static readonly DependencyProperty TileStateProperty

Field Value

DependencyProperty

Properties

HeaderStyle

Gets or sets the HeaderStyle property.

Declaration

cs-api-definition
public Style HeaderStyle { get; set; }

Property Value

Style

IsSelected

Gets or sets the IsSelected property.

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

MinimizedHeight

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

Declaration

cs-api-definition
public double MinimizedHeight { get; set; }

Property Value

double

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

cs-api-definition
public double MinimizedWidth { get; set; }

Property Value

double

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

ParentTileView

Gets the parent TileView that the item is assigned to.

Declaration

cs-api-definition
[Browsable(false)]
public RadTileView ParentTileView { get; }

Property Value

RadTileView

Position

Gets or sets the position of the tile.

Declaration

cs-api-definition
public int Position { get; set; }

Property Value

int

The position.

RestoredHeight

Gets or sets the RestoredHeight property.

Declaration

cs-api-definition
public double RestoredHeight { get; set; }

Property Value

double

RestoredWidth

Gets or sets the RestoredWidth property.

Declaration

cs-api-definition
public double RestoredWidth { get; set; }

Property Value

double

TileState

Gets or sets the TileState property.

Declaration

cs-api-definition
public TileViewItemState TileState { get; set; }

Property Value

TileViewItemState

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsSelectedChanged(bool, bool)

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

Declaration

cs-api-definition
protected virtual void OnIsSelectedChanged(bool oldValue, bool newValue)

Parameters

oldValue

bool

newValue

bool

OnKeyDown(KeyEventArgs)

Invoked on KeyDown.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

OnPositionChanged(RadRoutedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPositionChanged(RadRoutedEventArgs e)

Parameters

e

RadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

OnPositionChanged(int, int)

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

Declaration

cs-api-definition
protected virtual void OnPositionChanged(int oldPosition, int newPosition)

Parameters

oldPosition

int

newPosition

int

OnPreviewPositionChanged(RadRoutedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual bool OnPreviewPositionChanged(RadRoutedEventArgs e)

Parameters

e

RadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns

bool

OnPreviewSelectionChanged(SelectionChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual bool OnPreviewSelectionChanged(SelectionChangedEventArgs e)

Parameters

e

SelectionChangedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns

bool

OnPreviewTileStateChanged(PreviewTileStateChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPreviewTileStateChanged(PreviewTileStateChangedEventArgs e)

Parameters

e

PreviewTileStateChangedEventArgs

The RadRoutedEventArgs instance containing the event data.

OnSelectionChanged(SelectionChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)

Parameters

e

SelectionChangedEventArgs

The RadRoutedEventArgs instance containing the event data.

OnTileStateChanged(RadRoutedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnTileStateChanged(RadRoutedEventArgs e)

Parameters

e

RadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

OnTileStateChanged(TileViewItemState, TileViewItemState)

Invoked when the TileState property is changed.

Declaration

cs-api-definition
protected virtual void OnTileStateChanged(TileViewItemState oldValue, TileViewItemState newValue)

Parameters

oldValue

TileViewItemState

newValue

TileViewItemState

Events

PositionChanged

Occurs when the Position of a RadTileViewItem is changed.

Declaration

cs-api-definition
public event EventHandler<RadRoutedEventArgs> PositionChanged

Event Value

EventHandler<RadRoutedEventArgs>

PreviewPositionChanged

Occurs when the TileState of a RadTileViewItem is changed.

Declaration

cs-api-definition
public event EventHandler<RadRoutedEventArgs> PreviewPositionChanged

Event Value

EventHandler<RadRoutedEventArgs>

PreviewSelectionChanged

Occurs before the tree item is selected.

Declaration

cs-api-definition
public event SelectionChangedEventHandler PreviewSelectionChanged

Event Value

SelectionChangedEventHandler

PreviewTileStateChanged

Occurs before the TileState of a RadTileViewItem is changed.

Declaration

cs-api-definition
public event EventHandler<PreviewTileStateChangedEventArgs> PreviewTileStateChanged

Event Value

EventHandler<PreviewTileStateChangedEventArgs>

SelectionChanged

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

Declaration

cs-api-definition
public event SelectionChangedEventHandler SelectionChanged

Event Value

SelectionChangedEventHandler

TileStateChanged

Occurs when the TileState of a RadTileViewItem is changed.

Declaration

cs-api-definition
public event EventHandler<RadRoutedEventArgs> TileStateChanged

Event Value

EventHandler<RadRoutedEventArgs>