public MainPage() { TransportVMInstance = new TransportViewModel(); TransportVMInstance.ErrorCallbackRoutine = ErrorCallbackMsg; this.BindingContext = TransportVMInstance; try { InitializeComponent(); Analytics.TrackEvent("Started"); } catch (Exception ex) { Crashes.TrackError(ex); Debug.Print(ex.ToString()); } if (DesignMode.IsDesignModeEnabled) { } else { NavigationPage.SetHasNavigationBar(this, false); } }
public SongNotes(TransportViewModel tvm, QueuedTrack qt) { InitializeComponent(); this.qt = qt; this.tvm = tvm; snd = (SongNotesData)this.BindingContext; SetSongInfo(); }
public AddSongs(TransportViewModel tvm) { InitializeComponent(); this.tvm = tvm; this.BindingContext = this.tvm; SelectedTracks.ItemsSource = tvm.Playlist; ppd = new BusyBarViewModel(); BusyBar.BindingContext = ppd; Projects.ItemsSource = LoadedTracks; if (DesignMode.IsDesignModeEnabled) { ppd.BusyText = "Something here"; } }