Exemple #1
0
 public LayersView()
 {
     InitializeComponent();
     _mainViewModel = (MainViewModel)DataContext;
     AppBarIconButtonDelete = (ApplicationBarIconButton)ApplicationBar.Buttons[0];
     AppBarIconButtonSync = (ApplicationBarIconButton)ApplicationBar.Buttons[1];
 }
Exemple #2
0
 public MapView()
 {
     InitializeComponent();
     MapModeListPicker.SetBinding(ListPicker.SelectedItemProperty, MapViewBinding);
     TravelModeListPicker.SetBinding(ListPicker.SelectedItemProperty, TravelModeBinding);
     RoutingMethodListPicker.SetBinding(ListPicker.SelectedItemProperty, RoutingMethodBinding);
     _mainViewModel = (MainViewModel) DataContext;
     AppBarIconButtonCurrentLocation = (ApplicationBarIconButton) ApplicationBar.Buttons[0];
     AppBarIconButtonLayers = (ApplicationBarIconButton) ApplicationBar.Buttons[3];
     AppBarMenuItemItinerary = (ApplicationBarMenuItem) ApplicationBar.MenuItems[0];
     AppBarMenuItemSync = (ApplicationBarMenuItem) ApplicationBar.MenuItems[3];
     _mainViewModel.PropertyChanged += OnIsFollowingCurrentLocationChanged;
 }