public GetDirectionsPopUp() { InitializeComponent(); db = new RealmDataBase(true); autoComplete.DataSource = db.GetVenues(); autoComplete.SuggestionMode = Syncfusion.SfAutoComplete.XForms.SuggestionMode.Contains; model = new MapsNewViewModel(); vm = new TKCustomMapViewModel(); BindingContext = new TKCustomMapBindingsViewModel(); main.Children.Add(model.GetCustomMap()); }
public MapPageCS() { model = new MapsNewViewModel(); ChangeHandler = new SemesterChangeHandler(); viewModel = new FloatingActionButtonViewModel(); viewModel.AddMapToAbsouluteLayOut(model.GetCustomMap()); Content = viewModel.GetLayOut(); Device.StartTimer(TimeSpan.FromSeconds(1), () => { Device.BeginInvokeOnMainThread(() => RefreshUI()); return(true); }); ToolbarItems.Add(new ToolbarItem("Semester 1", null, new Action(() => Semester1()), ToolbarItemOrder.Secondary, 0)); ToolbarItems.Add(new ToolbarItem("Semester 2", null, new Action(() => Semester2()), ToolbarItemOrder.Secondary, 0)); ToolbarItems.Add(new ToolbarItem("Settings", null, new Action(() => Settings()), ToolbarItemOrder.Secondary, 0)); }