So aktivieren Sie Rahmen in Raster in Xamarin.forms

Baue ich ein Gitter in Xamarin.Formen.
Und ich möchte noch hinzufügen, dass Grenzen wie Tabellen.
Ich dachte, dass ich hinzufügen könnte, die Grenze bei der Definition von Zeilen und Spalten, scheiterte aber.
Kann mir jemand helfen?
Dies ist mein Aktueller code.

Grid grid = new Grid {
    VerticalOptions = LayoutOptions.FillAndExpand,
    RowDefinitions = {
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },

    },
    ColumnDefinitions = {
        new ColumnDefinition { Width = new GridLength (1, GridUnitType.Star) },
        new ColumnDefinition { Width = new GridLength (5, GridUnitType.Star) },
        new ColumnDefinition { Width = new GridLength (1, GridUnitType.Star) },
    }
};

InformationsquelleAutor der Frage Phoenix | 2015-07-16

Schreibe einen Kommentar