Skip to content

Commit 97ea4c8

Browse files
committed
update AvaloniaSamples/file-scripts/avalonia-field-keyword.cs
1 parent 91a93e6 commit 97ea4c8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

AvaloniaSamples/file-scripts/avalonia-field-keyword.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ public MainWindow()
7676
};
7777
var panel = new StackPanel
7878
{
79-
Margin = new Thickness(20)
79+
Children =
80+
{
81+
textBox,
82+
textBlock
83+
}
8084
};
81-
panel.Children.Add(textBox);
82-
panel.Children.Add(textBlock);
83-
8485
Content = panel;
8586
}
8687
}

0 commit comments

Comments
 (0)