Skip to main content

TileLayoutControl Class

The Tile Layout Control.

Namespace: DevExpress.Xpf.LayoutControl

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

#Declaration

[DXToolboxBrowsable]
[StyleTypedProperty(Property = "GroupHeaderStyle", StyleTargetType = typeof(TileGroupHeader))]
public class TileLayoutControl :
    FlowLayoutControl,
    ITileLayoutControl,
    IFlowLayoutControl,
    ILayoutControlBase,
    IScrollControl,
    IPanel,
    IControl,
    IFlowLayoutModel,
    ILayoutModelBase

#Remarks

The Tile Layout Control for Silverlight allows you to bring a radical new look to your Web applications powered by Silverlight with the Microsoft Metro design principles. A tile-based interface, with built-in animation, touch and drag-and-drop support, it delivers an outstanding end user experience.

TileLayoutControl-overview

#Examples

This example shows how to create a Tile Layout Control. The animation below shows the result:

tilelayoutcontrol-exampleresult

using System;
using System.Collections.Generic;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace SilverlightApplication1 {

    public partial class MainPage : UserControl {
        public MainPage() {
            InitializeComponent();
        }

        public List<Agent> Agents { get { return SilverlightApplication1.Agents.DataSource; } }
    }

    public class Agent {
        public string AgentName { get; set; }
        public string Phone { get; set; }
        public string Photo { get; set; }
        public ImageSource PhotoSource {
            get {
                return string.IsNullOrEmpty(Photo) ? null : new BitmapImage(new Uri("/SilverlightApplication1;component" + Photo, UriKind.Relative));
            }
        }
    }

    public static class Agents {
        public static readonly List<Agent> DataSource =
            new List<Agent> {
                new Agent { AgentName = "Anthony Peterson", Phone = "(555) 444-0782", Photo = "/Images/1.jpg" },
                new Agent { AgentName = "Rachel Scott", Phone = "(555) 249-1614", Photo = "/Images/2.jpg" },
                new Agent { AgentName = "Albert Walker", Phone = "(555) 232-2303", Photo = "/Images/3.jpg" }
            };
    }
}
See Also