diff --git a/src/Avalonia.Controls/Grid.cs b/src/Avalonia.Controls/Grid.cs
index b51583d8b3..90a27d0b31 100644
--- a/src/Avalonia.Controls/Grid.cs
+++ b/src/Avalonia.Controls/Grid.cs
@@ -177,6 +177,17 @@ namespace Avalonia.Controls
return element.GetValue(RowSpanProperty);
}
+
+ ///
+ /// Gets the value of the IsSharedSizeScope attached property for a control.
+ ///
+ /// The control.
+ /// The control's IsSharedSizeScope value.
+ public static bool GetIsSharedSizeScope(AvaloniaObject element)
+ {
+ return element.GetValue(IsSharedSizeScopeProperty);
+ }
+
///
/// Sets the value of the Column attached property for a control.
///
@@ -217,6 +228,16 @@ namespace Avalonia.Controls
element.SetValue(RowSpanProperty, value);
}
+ ///
+ /// Sets the value of IsSharedSizeScope property for a control.
+ ///
+ /// The control.
+ /// The IsSharedSizeScope value.
+ public static void SetIsSharedSizeScope(AvaloniaObject element, bool value)
+ {
+ element.SetValue(IsSharedSizeScopeProperty, value);
+ }
+
///
/// Gets the result of the last column measurement.
/// Use this result to reduce the arrange calculation.