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

Tile

Class

Visually represents an item in a RadTileList control.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
public class Tile : ContentControl

Inheritance: objectTile

Constructors

Initializes a new instance of the Tile class.

C#
public Tile()

Fields

CommandParameterProperty

DependencyProperty

Identifies the CommandParameter dependency property.

C#
public static readonly DependencyProperty CommandParameterProperty

CommandProperty

DependencyProperty

Identifies the Command dependency property.

C#
public static readonly DependencyProperty CommandProperty

CommandTargetProperty

DependencyProperty

Identifies the CommandTarget dependency property.

C#
public static readonly DependencyProperty CommandTargetProperty

IsSelectedProperty

DependencyProperty

Identifies the IsSelected dependency property.

C#
public static readonly DependencyProperty IsSelectedProperty

TileTypeProperty

DependencyProperty

Identifies the TileTypeProperty property.

C#
public static readonly DependencyProperty TileTypeProperty

Properties

Gets or sets the command for a Tile.

C#
public ICommand Command { get; set; }
Property Value:

The command.

Gets or sets the command parameter of the Tile.

C#
public object CommandParameter { get; set; }
Property Value:

The command parameter.

CommandTarget

IInputElement

Gets or sets the command target of the Tile when using routed command.

C#
public IInputElement CommandTarget { get; set; }
Property Value:

The command target.

Gets or sets the display index.

C#
public int? DisplayIndex { get; set; }

Gets the Group the tile belongs to.

C#
public TileGroup Group { get; }

Fetches the value of the IsEnabled property.

C#
protected override bool IsEnabledCore { get; }
Remarks:

The reason this property is overridden is so that the Tile can infuse the value for CanExecute into it.

Gets or sets a value that indicates whether a Tile is selected. This is a dependency property.

C#
public bool IsSelected { get; set; }

Gets or sets the tile type.

C#
public TileType TileType { get; set; }

Methods

Changes the visual state.

C#
protected virtual void ChangeVisualState(bool useTransitions)
Parameters:useTransitionsbool

If set to true [use transitions].

Updates the visual state.

C#
protected void GoToState(bool useTransitions, params string[] stateNames)
Parameters:useTransitionsboolstateNamesstring[]
C#
public override void OnApplyTemplate()
C#
protected override void OnContentChanged(object oldContent, object newContent)
Parameters:oldContentobjectnewContentobject
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

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.

Called when selection is changed.

C#
protected virtual void OnIsSelectedChanged()
C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs
C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs
C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs
C#
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs