Last active
August 29, 2015 14:23
-
-
Save matsukurou/0ac878e7d79e708ca39a to your computer and use it in GitHub Desktop.
Xamarin.Formsで画面幅いっぱいにレイアウトする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 全体のレイアウト | |
// レイアウトにスケールをかけているので、レイアウトの中のもの全てにスケールがかかる | |
var stackLayout = new StackLayout | |
{ | |
// 縦は真ん中に表示 | |
VerticalOptions = LayoutOptions.Center, | |
// 横は画面全体に広げる | |
HorizontalOptions = LayoutOptions.FillAndExpand, | |
// 背景色を設定 | |
BackgroundColor = Color.White, | |
// スペースを設定 | |
Spacing = 30, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment