Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using System.Threading.Tasks;
using App.Common.Core.ViewModels;
using Xamarin.Forms;
namespace App.Common.Core.Views
{
public abstract class BaseView : ContentPage
{
public BaseView()
{
AppContainer.Instance.LoadViewModel(this);
}
protected override void OnAppearing()
{
base.OnAppearing();
if (null != BindingContext && BindingContext is BaseViewModel vm)
Title = vm.Title;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.