Created
March 30, 2016 13:47
-
-
Save nuitsjp/0bc003d01d2f21817f4f8a7ab0ea8229 to your computer and use it in GitHub Desktop.
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
public MapPage() | |
{ | |
// パディングを追加する | |
Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0); | |
// 検索バーと地図コントロールを作成し、StackLayoutへ設定する | |
searchBar = new SearchBar(); | |
map = new Map { IsShowingUser = true }; | |
var stack = new StackLayout(); | |
stack.Children.Add(searchBar); | |
stack.Children.Add(map); | |
// ページコンテンツとしてStackLayoutを登録する | |
Content = stack; | |
// 検索ボタン押下イベントにハンドラを登録する | |
searchBar.SearchButtonPressed += OnSearchButtonPressed; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment