Skip to main content
A newer version of this page is available. .

Tile.ContentSource Property

Gets or sets the content source. This is a dependency property.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v18.2.dll

Declaration

public IEnumerable ContentSource { get; set; }

Property Value

Type Description
IEnumerable

An object that enumerates contents for the tile.

Remarks

A tile can display varying content specified by the ContentSource property. The tile’s content is changed automatically at the time interval specified by the Tile.ContentChangeInterval property. If the Tile.AnimateContentChange option is enabled, an animation is played each time the tile’s content changes.

Example

This example shows how to define varying content using the Tile.ContentSource property. The content change interval is set to 1 second. The Tile.AnimateContentChange option is enabled to play an animation each time the tile’s content changes.

The animation below shows the result:

tile-animatecontentchange

<dxlc:TileLayoutControl Background="White" Name="tileLayoutControl1">
            <dxlc:Tile Name="tile1" Size="Small" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
                       AnimateContentChange="True" ContentChangeInterval="00:00:01">
                <dxlc:Tile.ContentSource>
                    <dx:FrameworkElements>
                        <Image Source="Images/Research.png" Stretch="None" />
                        <Image Source="Images/System.png" Stretch="None" />
                        <Image Source="Images/Statistics.png" Stretch="None" />
                    </dx:FrameworkElements>
                </dxlc:Tile.ContentSource>
            </dxlc:Tile>
        </dxlc:TileLayoutControl>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ContentSource property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also