public ActionResult ChatBot(string botName = "Frank") { ChatBotViewModel chatBotViewModel = new ChatBotViewModel { WelcomeMessage = StandardWelcomeMessage, BotName = botName }; //throw new NotImplementedException(); return(View(chatBotViewModel)); }
public ChatPage() { InitializeComponent(); BindingContext = vm = new ChatBotViewModel(); vm.Messages.CollectionChanged += (sender, e) => { Device.BeginInvokeOnMainThread(() => { var target = vm.Messages[vm.Messages.Count - 1]; MessagesList.ScrollTo(target, ScrollToPosition.End, true); }); }; }
public MainPage() { ChatBotViewModel vm; InitializeComponent(); BindingContext = vm = new ChatBotViewModel(); vm.Messages.CollectionChanged += (sender, e) => { var target = vm.Messages[vm.Messages.Count - 1]; MessagesList.ScrollTo(target, ScrollToPosition.End, true); }; }
public ChatBotView() { InitializeComponent(); viewModel = new ChatBotViewModel(); BindingContext = viewModel; }