diff --git a/src/Samples/Toolkit.SampleApp.Maui/Samples/SymbolDisplaySample.xaml.cs b/src/Samples/Toolkit.SampleApp.Maui/Samples/SymbolDisplaySample.xaml.cs index f988eab08..d0bd7c66e 100644 --- a/src/Samples/Toolkit.SampleApp.Maui/Samples/SymbolDisplaySample.xaml.cs +++ b/src/Samples/Toolkit.SampleApp.Maui/Samples/SymbolDisplaySample.xaml.cs @@ -38,23 +38,14 @@ private void AddSymbol(Symbol symbol) { int columnCount = LayoutRoot.ColumnDefinitions.Count; var sd = new SymbolDisplay() { Symbol = symbol }; - Border border = new Border() - { - HorizontalOptions = LayoutOptions.Center, - VerticalOptions = LayoutOptions.Center, - Padding = 0, - StrokeThickness = 1, - }; - border.SetAppThemeColor(Microsoft.Maui.Controls.Border.StrokeProperty, Colors.Black, Colors.White); - border.Content = sd; int count = LayoutRoot.Children.Count; var row = count / columnCount; var column = count % columnCount; if (column == 0) LayoutRoot.RowDefinitions.Add(new RowDefinition()); - Grid.SetRow(border, row); - Grid.SetColumn(border, column); - LayoutRoot.Children.Add(border); + Grid.SetRow(sd, row); + Grid.SetColumn(sd, column); + LayoutRoot.Children.Add(sd); } } } \ No newline at end of file