Last active
May 15, 2018 01:43
-
-
Save PulkitSethi1984/a0c8b8aa37cb7867351dd61c82462b79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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