Browse Source

Fix shared size scope handlers. 5/9 unit tests on SharedSizeScopeTests now works.

pull/2563/head
Jumar Macato 7 years ago
parent
commit
ff0ae96080
No known key found for this signature in database GPG Key ID: B19884DAC3A5BF3F
  1. 2
      src/Avalonia.Controls/DefinitionBase.cs
  2. 1
      src/Avalonia.Controls/Grid.cs

2
src/Avalonia.Controls/DefinitionBase.cs

@ -939,7 +939,7 @@ namespace Avalonia.Controls
static DefinitionBase()
{
SharedSizeGroupProperty.Changed.AddClassHandler<DefinitionBase>(OnSharedSizeGroupPropertyChanged);
PrivateSharedSizeScopeProperty.Changed.AddClassHandler<Control>(OnPrivateSharedSizeScopePropertyChanged);
PrivateSharedSizeScopeProperty.Changed.AddClassHandler<DefinitionBase>(OnPrivateSharedSizeScopePropertyChanged);
}
#endregion Properties

1
src/Avalonia.Controls/Grid.cs

@ -30,6 +30,7 @@ namespace Avalonia.Controls
static Grid()
{
IsSharedSizeScopeProperty.Changed.AddClassHandler<Control>(DefinitionBase.OnIsSharedSizeScopePropertyChanged);
ShowGridLinesProperty.Changed.AddClassHandler<Grid>(OnShowGridLinesPropertyChanged);
ColumnProperty.Changed.AddClassHandler<Grid>(OnCellAttachedPropertyChanged);
ColumnSpanProperty.Changed.AddClassHandler<Grid>(OnCellAttachedPropertyChanged);

Loading…
Cancel
Save