/// <summary> /// Event handler for navigation completion /// </summary> /// <param name="sender">The sender</param> /// <param name="e">The event args</param> private void OnNavigated(object sender, ShellNavigatedEventArgs e) { if (this.navigationService == null && Shell.Current != null) { this.navigationService = DependencyHelper.Resolve <INavigationService>(); this.navigationService.Initialise(Shell.Current); } }
/// <summary> /// Event override called when the view is displayed /// </summary> protected override void OnAppearing() { base.OnAppearing(); var navigationService = DependencyHelper.Resolve <INavigationService>(); navigationService.Initialise(Shell.Current); }
/// <summary> /// Initializes a new instance of the <see cref="MainPage" /> class. /// </summary> public MainPage() { this.InitializeComponent(); this.dispatcher = DependencyHelper.Resolve <IDispatchOnUIThread>(); this.dispatcher.Initialize(); DispatchHelper.Initialise(this.dispatcher); this.DataContext = DependencyHelper.Resolve <IMainViewModel>(); this.drawarea.SizeChanged += (s, e) => { this.VM.SizeChanged(e.NewSize.Width, e.NewSize.Height); }; this.Loaded += (s, e) => { this.VM.OnViewLoaded(); }; }
/// <summary> /// Initializes a new instance of the <see cref="MainPage" /> class. /// </summary> public MainPage() { this.InitializeComponent(); this.BindingContext = DependencyHelper.Resolve <IMainViewModel>(); }
/// <summary> /// Initializes a new instance of the <see cref="PermissionsPage" /> class. /// </summary> public PermissionsPage() { this.InitializeComponent(); this.BindingContext = DependencyHelper.Resolve <IPermissionsViewModel>(); }