Browse Source

[Grid] add missing static set and get methods for IsSharedSizeScope property.

pull/2469/head
Dan Walmsley 7 years ago
parent
commit
dda9dd729c
  1. 21
      src/Avalonia.Controls/Grid.cs

21
src/Avalonia.Controls/Grid.cs

@ -177,6 +177,17 @@ namespace Avalonia.Controls
return element.GetValue(RowSpanProperty);
}
/// <summary>
/// Gets the value of the IsSharedSizeScope attached property for a control.
/// </summary>
/// <param name="element">The control.</param>
/// <returns>The control's IsSharedSizeScope value.</returns>
public static bool GetIsSharedSizeScope(AvaloniaObject element)
{
return element.GetValue(IsSharedSizeScopeProperty);
}
/// <summary>
/// Sets the value of the Column attached property for a control.
/// </summary>
@ -217,6 +228,16 @@ namespace Avalonia.Controls
element.SetValue(RowSpanProperty, value);
}
/// <summary>
/// Sets the value of IsSharedSizeScope property for a control.
/// </summary>
/// <param name="element">The control.</param>
/// <param name="value">The IsSharedSizeScope value.</param>
public static void SetIsSharedSizeScope(AvaloniaObject element, bool value)
{
element.SetValue(IsSharedSizeScopeProperty, value);
}
/// <summary>
/// Gets the result of the last column measurement.
/// Use this result to reduce the arrange calculation.

Loading…
Cancel
Save