Skip to main content

TileItem.SetContent(TileItemFrame, Boolean) Method

Forces the current tile item to display a specific TileItemFrame.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual void SetContent(
    TileItemFrame frame,
    bool animated
)

Parameters

Name Type Description
frame TileItemFrame

A TileItemFrame to be displayed.

animated Boolean

A Boolean value indicating whether the frame should be displayed using the frame animation.

Remarks

TileItems support frame animation. See the Tile Animation topic to learn more.

The SetContent method allows you to display any TileItemFrame as the current tile item’s content. The frame to be displayed doesn’t need to be a member of the current tile item’s TileItem.Frames collection. This allows you to display custom frames or frames used within other tile items.

Note

Notice that calling the SetContent method to display a frame within an animated TileItem doesn’t break its own animation consequence. When the time specified via the TileItem.FrameAnimationInterval or the TileItemFrame.Interval property elapses, frame change will occur according to the original tile item’s animation cycle. Use the TileControl.SuspendAnimation method to temporarily pause item animation.

The SetContent method can be used to set the content of both static and animated tile items.

See Also