-
Notifications
You must be signed in to change notification settings - Fork 10
uwidgets.core.interfaces.igridservice 1
GitHub Action edited this page Aug 11, 2024
·
5 revisions
Namespace: uWidgets.Core.Interfaces
Service for resizing and positioning windows in a grid.
public interface IGridService<T>
T
Type of window. For Avalonia, use Avalonia.Controls.Window
Attributes NullableContextAttribute
Set the width and height of the window in grid units.
void SetSize(T window, int columns, int rows)
window
T
Window to resize
columns
Int32
Columns span
rows
Int32
Rows span
Set the width and height of the window to the nearest whole number of grid units.
void SnapSize(T window)
window
T
Window to resize
Set the position of the window to the nearest whole number of grid units.
void SnapPosition(T window)
window
T
Window to reposition