Asigning BoxView to Grid


I just want to create a boxview using MainPage.xaml.cs. Here is my current Code.
BoxView boxView = new BoxView() { //Grid.Row = 2, //Grid.Column = 0, Color = Color.Black, WidthRequest = 15, HeightRequest = 10, HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.StartAndExpand, TranslationY = Convert.ToInt32(rel_Höhe - (i* rel_Höhe / 30)) };

Here is my Problem: I don't know How I could asign the boxview to grid.row=2 and grid. column=0. Is there any possibility? My Grid is defined in my XAML-Code.

Best Answer


Sign In or Register to comment.