public ChatPage(Models.User user, GroupChannel channel) { InitializeComponent(); BindingContext = vm = new ChatViewModel(); vm.Channel = channel; //vm.Title = user.Nickname; vm.UserName = Settings.ChatID; vm.Load(); instance = this; }
public ChatPage(UserInfo user, GroupChannel channel) { InitializeComponent(); BindingContext = vm = new ChatViewModel(); vm.Channel = channel; //Page_Title.Text = user.FirstName; vm.Title = user.FirstName; vm.UserName = Settings.ChatID; vm.Load(); instance = this; }