LoginSignup
0
0

MAUI Gridレイアウトの行列定義

Last updated at Posted at 2023-12-31

Gridレイアウトで最初に行列を定義するとき
以下のように*で簡潔に定義が可能、以下だと6行4列のGridが出来る

  <Grid Padding="10" RowSpacing="10" ColumnSpacing="10"
        RowDefinitions="*,*,*,*,*,*"
        ColumnDefinitions="*,*,*,*">

各行の割合を変えたいときは、以下のように数値をつける。
最初の行だけ他の2倍の大きさとする場合

  <Grid Padding="16" RowSpacing="2" ColumnSpacing="2"
        RowDefinitions="2*,*,*,*,*,*"
        ColumnDefinitions="*,*,*,*">
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0