Browse Source
Fix shared size scope handlers. 5/9 unit tests on SharedSizeScopeTests now works.
pull/2563/head
Jumar Macato
7 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
2 changed files with
2 additions and
1 deletions
-
src/Avalonia.Controls/DefinitionBase.cs
-
src/Avalonia.Controls/Grid.cs
|
|
@ -939,7 +939,7 @@ namespace Avalonia.Controls |
|
|
static DefinitionBase() |
|
|
static DefinitionBase() |
|
|
{ |
|
|
{ |
|
|
SharedSizeGroupProperty.Changed.AddClassHandler<DefinitionBase>(OnSharedSizeGroupPropertyChanged); |
|
|
SharedSizeGroupProperty.Changed.AddClassHandler<DefinitionBase>(OnSharedSizeGroupPropertyChanged); |
|
|
PrivateSharedSizeScopeProperty.Changed.AddClassHandler<Control>(OnPrivateSharedSizeScopePropertyChanged); |
|
|
PrivateSharedSizeScopeProperty.Changed.AddClassHandler<DefinitionBase>(OnPrivateSharedSizeScopePropertyChanged); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endregion Properties
|
|
|
#endregion Properties
|
|
|
|
|
|
@ -30,6 +30,7 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
|
static Grid() |
|
|
static Grid() |
|
|
{ |
|
|
{ |
|
|
|
|
|
IsSharedSizeScopeProperty.Changed.AddClassHandler<Control>(DefinitionBase.OnIsSharedSizeScopePropertyChanged); |
|
|
ShowGridLinesProperty.Changed.AddClassHandler<Grid>(OnShowGridLinesPropertyChanged); |
|
|
ShowGridLinesProperty.Changed.AddClassHandler<Grid>(OnShowGridLinesPropertyChanged); |
|
|
ColumnProperty.Changed.AddClassHandler<Grid>(OnCellAttachedPropertyChanged); |
|
|
ColumnProperty.Changed.AddClassHandler<Grid>(OnCellAttachedPropertyChanged); |
|
|
ColumnSpanProperty.Changed.AddClassHandler<Grid>(OnCellAttachedPropertyChanged); |
|
|
ColumnSpanProperty.Changed.AddClassHandler<Grid>(OnCellAttachedPropertyChanged); |
|
|
|