Last active
March 29, 2016 08:02
-
-
Save nuitsjp/4469b5802a855bafae1a 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() | |
{ | |
// 検索バーと地図コントロールを作成し、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