Skip to content

uwidgets.core.interfaces.igridservice 1

GitHub Action edited this page Aug 11, 2024 · 5 revisions

IGridService<T>

Namespace: uWidgets.Core.Interfaces

Service for resizing and positioning windows in a grid.

public interface IGridService<T>

Type Parameters

T
Type of window. For Avalonia, use Avalonia.Controls.Window

Attributes NullableContextAttribute

Methods

SetSize(T, Int32, Int32)

Set the width and height of the window in grid units.

void SetSize(T window, int columns, int rows)

Parameters

window T
Window to resize

columns Int32
Columns span

rows Int32
Rows span

SnapSize(T)

Set the width and height of the window to the nearest whole number of grid units.

void SnapSize(T window)

Parameters

window T
Window to resize

SnapPosition(T)

Set the position of the window to the nearest whole number of grid units.

void SnapPosition(T window)

Parameters

window T
Window to reposition

Clone this wiki locally