Back to Devexpress

TileControl Class

windowsforms-devexpress-dot-xtraeditors-cd4c4fe7.md

latest5.7 KB
Original Source

TileControl Class

The control that manages Windows UI-inspired tiles. Using this component, you can create both static and animated live tiles in your applications.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXLicenseWinForms]
public class TileControl :
    XtraControl,
    ITileControl,
    ITileControlUpdateSmartTag,
    ITileControlProperties,
    ISupportXtraAnimation,
    ISupportLookAndFeel,
    IAppearanceOwner,
    IXtraSerializable,
    IMouseWheelScrollClient,
    IMouseWheelSupport,
    IToolTipControlClient,
    IContextItemCollectionOptionsOwner,
    IContextItemCollectionOwner,
    ISupportAccessibilityNotifyClients,
    ISupportDesignerRegistration,
    ISupportPageNavigation,
    ISupportAsyncScrollAnimation,
    ISupportDXSkinColors,
    ISupportImageDragDrop,
    ISupportJsonXtraSerializer,
    ISupportXtraSerializer,
    IXtraSerializableLayout,
    IStringImageProvider,
    IXtraSerializableLayoutEx
vb
<DXLicenseWinForms>
Public Class TileControl
    Inherits XtraControl
    Implements ITileControl,
               ITileControlUpdateSmartTag,
               ITileControlProperties,
               ISupportXtraAnimation,
               ISupportLookAndFeel,
               IAppearanceOwner,
               IXtraSerializable,
               IMouseWheelScrollClient,
               IMouseWheelSupport,
               IToolTipControlClient,
               IContextItemCollectionOptionsOwner,
               IContextItemCollectionOwner,
               ISupportAccessibilityNotifyClients,
               ISupportDesignerRegistration,
               ISupportPageNavigation,
               ISupportAsyncScrollAnimation,
               ISupportDXSkinColors,
               ISupportImageDragDrop,
               ISupportJsonXtraSerializer,
               ISupportXtraSerializer,
               IXtraSerializableLayout,
               IStringImageProvider,
               IXtraSerializableLayoutEx

Remarks

The Tile Control, inspired by the Windows 10 UI from Microsoft, helps you easily integrate live tiles into your applications. See the Tile Control topic to learn more.

TileControl consists of two main visual elements - TileGroups and TileItems. Refer to the Tile Groups and Items topic for more info.

The following code illustrates how to create a Tile Control at runtime. The control has one group with one Tile inside.

csharp
//Form1.cs
TileControl tileControl = new TileControl { Dock = DockStyle.Fill, Parent = this };
TileGroup tileGroup = new TileGroup();
TileItem tileItem = new TileItem();
TileItemElement tileItemElement = new TileItemElement { Text = "Some text" };
tileItem.Elements.Add(tileItemElement);
tileGroup.Items.Add(tileItem);
tileControl.Groups.Add(tileGroup);
vb
'Form1.vb
Dim tileControl As TileControl = New TileControl With {.Dock = DockStyle.Fill, .Parent = Me}
Dim tileGroup As New TileGroup()
Dim tileItem As New TileItem()
Dim tileItemElement As TileItemElement = New TileItemElement With {.Text = "Some text"}
tileItem.Elements.Add(tileItemElement)
tileGroup.Items.Add(tileItem)
tileControl.Groups.Add(tileGroup)

Pager Navigation

The RadioGroup and WindowsUIButtonPanel can be used as a pager for the following controls:

The pager automatically splits the target control’s content into pages, and displays navigation buttons to scroll to corresponding pages. The pager navigation functionality is implemented as a Behavior and can be added to your controls using the BehaviorManager component.

Inheritance

Object MarshalByRefObject Component Control DevExpress.XtraEditors.XtraControl TileControl TileBar

See Also

TileControl Members

Tile Control

Tile Groups and Items

Use WinForms SearchControl with TileControl

DevExpress.XtraEditors Namespace