TileGrid
Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll
A grid of tiles that always fills its space (Live View’s views, dashboards): TileLayout.Size x TileLayout.Size cells, a TileFrame per tile on its cells. While editing it draws the cell lines, each frame moves (drag inside), resizes (drag an edge or a corner) and removes its tile, and TileGrid.ShowPreview shows where a dragged item would land, TileGrid.ShowSelectionArea the cells a selection rectangle covers. Theme classes: Border.tileSelection, Panel.tile, Border.tileEdit, Border.tileHover, TextBlock.tileTitle, Border.dropPreview.
public sealed class TileGrid : PanelInherits Panel
Constructors
Section titled “Constructors”TileGrid
Section titled “TileGrid”TileGrid()An empty grid; set TileGrid.Source.
Properties
Section titled “Properties”CellHeight
Section titled “CellHeight”double CellHeight { get; }The height of one cell.
CellWidth
Section titled “CellWidth”double CellWidth { get; }The width of one cell.
Source
Section titled “Source”ITileGridSource? Source { get; set; }The tiles and rules shown.
Methods
Section titled “Methods”CellAt
Section titled “CellAt”(int X, int Y) CellAt(Point point)The cell under point (relative to the grid).
Contains
Section titled “Contains”bool Contains(Point point)Whether point (relative to the grid) lies on the grid.
ShowPreview
Section titled “ShowPreview”void ShowPreview(TileRect? rect, string? title = null)Where a dragged item would land, with its name (null hides it).
ShowSelectionArea
Section titled “ShowSelectionArea”void ShowSelectionArea(TileRect? rect)The cells a selection rectangle covers while the user drags over the grid (null hides it).