mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-12 21:00:26 +00:00
Some checks are pending
Canary release job / Release for linux-arm64 (push) Waiting to run
Canary release job / Release for linux-x64 (push) Waiting to run
Canary release job / Release for win-x64 (push) Waiting to run
Canary release job / Release MacOS universal (push) Waiting to run
Canary release job / Create GitLab Release (push) Blocked by required conditions
Now it no longer causes the dialog to disappear (which then promptly re-appears so you can click yes/no to accept/deny the update)
40 lines
1,008 B
C#
40 lines
1,008 B
C#
using Avalonia.Controls;
|
|
|
|
namespace Ryujinx.Ava.UI.Helpers
|
|
{
|
|
public static class ControlExtensions
|
|
{
|
|
extension(Control ctrl)
|
|
{
|
|
public int GridRow
|
|
{
|
|
get => Grid.GetRow(ctrl);
|
|
set => Grid.SetRow(ctrl, value);
|
|
}
|
|
|
|
public int GridColumn
|
|
{
|
|
get => Grid.GetColumn(ctrl);
|
|
set => Grid.SetColumn(ctrl, value);
|
|
}
|
|
|
|
public int GridRowSpan
|
|
{
|
|
get => Grid.GetRowSpan(ctrl);
|
|
set => Grid.SetRowSpan(ctrl, value);
|
|
}
|
|
|
|
public int GridColumnSpan
|
|
{
|
|
get => Grid.GetColumnSpan(ctrl);
|
|
set => Grid.SetColumnSpan(ctrl, value);
|
|
}
|
|
|
|
public bool GridIsSharedSizeScope
|
|
{
|
|
get => Grid.GetIsSharedSizeScope(ctrl);
|
|
set => Grid.SetIsSharedSizeScope(ctrl, value);
|
|
}
|
|
}
|
|
}
|
|
}
|