public ChatRoomViewModel(ChatRoomView page, ChatRoomDetail details) { _Page = page; _RoomDetail = details; GetMessages(); EnterChat(); // initializeTimer(); // MessagingCenter.Send<ChatRoomViewModel,Message>(this, "LastMessage",message); }
private void OnForumSelected() { ChatRoomView page = new ChatRoomView(); ChatRoomViewModel viewModel = new ChatRoomViewModel(page, this.SelectedForum.ChatDetail); page.BindingContext = viewModel; NavigationHandler.GlobalNavigator.Navigation.PushAsync(page); SelectedForum = null; }