示例#1
0
 void MapSearchControlSetSource(object sender, DataEventArgs e)
 {
     _mapSearchControl.Close();
     _mapSearchControl = null;
     SetSource((LocationResult)e.Data);
 }
示例#2
0
 void SearchLocationButtonClick(object sender, RoutedEventArgs e)
 {
     if (_mapSearchControl != null)
         _mapSearchControl.Close();
     var height = FrameworkManager.Canvas.ActualHeight;
     _mapSearchControl = new MapSearchControl { Height = height - 200 };
     _mapSearchControl.InitializeControl(FrameworkManager, 0, 0);
     _mapSearchControl.ShowKeyBoardRequested += MapSearchControlShowKeyBoardRequested;
     _mapSearchControl.HideKeyBoardRequested += MapSearchControlHideKeyBoardRequested;
     _mapSearchControl.SetDestination += MapSearchControlSetDestination;
     _mapSearchControl.Closed += MapSearchControlClosed;
     _mapSearchControl.SetSource += MapSearchControlSetSource;
 }
示例#3
0
 void MapSearchControlClosed(object sender, EventArgs e)
 {
     _mapSearchControl = null;
 }