Skip to content

Commit ea15196

Browse files
committed
Fix AutoFillChildren property for UWP
1 parent e87fd36 commit ea15196

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

GridExtra.Shared/GridEx.cs

+5
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,11 @@ private static void OnAreaChanged(DependencyObject d, DependencyPropertyChangedE
618618

619619
// 子要素全体のAutoFillを計算しなおす
620620
var grid = ctrl.Parent as Grid;
621+
if (grid == null)
622+
{
623+
return;
624+
}
625+
621626
var isAutoFill = GetAutoFillChildren(grid);
622627
if (isAutoFill)
623628
{

0 commit comments

Comments
 (0)