/// <summary> /// Initializes a new instance of the <see cref="RecentChatPage" /> class. /// </summary> public RecentChatPage() { InitializeComponent(); var chatService = App.Kernel.Get <IChatService>(); var profileService = App.Kernel.Get <IProfileService>(); BindingContext = new RecentChatViewModel(chatService, profileService, this); }
/// <summary> /// Initializes a new instance of the <see cref="RecentChatPage" /> class. /// </summary> public RecentChatPage() { InitializeComponent(); RecentChatViewModel vm = new RecentChatViewModel(); vm.Navigation = Navigation; BindingContext = vm; }