UWP UI Freeze While ScrollTo method called in Xamarin ListView - xamarin.uwp

We are developing chat application using Xamarin.Forms (2.5.0.91635) for UWP. We are trying to implement very basic functionality which is scroll to bottom when user open any chat window or send/receive messages. It working fine where no scroll in chat window but when messages are more then we show vertical scroll bar in chat widow. we are using below line to goes to last item of list view :
lstMessages.ScrollTo(objlastmessage, ScrollToPosition.Start, false);
We are use ObservableCollection to store message and bind it with listview.
Now problem is that when messenger app get any message from other user then system add it in observation collection and then move to last message in chat window, in between if if user typing message in Xamarin text editor then it freeze the UI until listivew update. so how to fix this issue. please some need hep.
Thanks

Related

Dialog interruptions in MS Bot Framework V4- Node.js

I am working on a bot in which I am using a waterfall dialog with some prompts to gather information from the user. The dialog is getting triggered by a button click on an adaptive card.
Now if a user clicks the button, go into the dialog mode, scroll up and clicks the same action button (might be a different action button too), what are the possible options that MS bot service provide to handle such scenarios where:
I can let the user know of the existing dialog mode.
I can pause the flow until the user receives a response for the second requested action item and
continue from where the conversation left off.
Use suggested actions that are hidden after being clicked or use adaptive cards and
the communities adaptive card prompt

How to Make Gushup Web widget full screen and open by default

I am working Gupshup Chat bot,
I am trying to make Gushup bot full width i want the Chat bot to be full width and the Chat window to open by default when the chat window is loaded.
Please someone should tell show me how i can achieve this, am using the Gushup web widget on my website homepage but i need it to be full width to cover the whole of the page and also to be open by default.
Thanks
copy iframe html generated by chat popup using browser inspector

Simple Gnome Chat: How to get modal dialog?

I've created a very simple chat (one to one chat) which works by just sending TCP-packets. The way it works at the moment is just by sending and receiving messages in the terminal. I would like to create a simple GUI that shows dialogs (modal i think it's called) in Gnome like in this picture:
Gnome Modal Dialog Chat
In other words just an application that runs in the background that pops up a modal if you receive a message, and then you can type in an answer and just press enter to send it.
Does anyone have an idea how to do this? Any examples of this online?

IE BHO: SAP Netweaver portal page doesnt trigger any browser events

Im trying to create a BHO for a SAP Netweaver portal webgui and I have no idea on how SAP Netweaver works. The user selects an option from a combo box and that opens up another web form.
The user fills up the form and presses "Enter" and that kinda does a post back, validates the data entered by the user and shows an error img next to the fields with invalid data. Also an error message is shown in a status bar kinda div in the bottom of the page.
The BHO is suppose to capture these error text and launch another windows application.
But none of the browser events (BeforeNavigate2, DocumentComplete, NavigateComplete2) gets fired when the user presses the Enter button due to which I couldnt read the DOM of that page.
Any idea on how to trigger the browser events in this scenario?

JSF+AJAX push : realtime chat / notification system

I'm trying to add some features to my webapp, something like a "live user-to-user" chat (like Facebook's one) and a realtime notifications system.
Let's consider this scenario :
We've got two users, A and B.
A sends a message to B.
If the chat window between B and A is opened on B's browser, we update it, showing the new message on B's browser.
If the windows's not opened, we need to show a notification or something on B's browser.
So, having a PrimeFaces Dialog as the chat window and a PrimeFaces NotificationBar to show notifications, how can I do that?
I can't use PrimeFaces' push as they don't work with Glassfish.
I've found out about ICEPush, that seems to be a nice way to do this, but the thing about "Rendering groups" stopped me from trying it.
How can I update just a SINGLE client if ICEPush talks about groups?
Should I create a new group for each client?
Something like :
B has a "BwithA" group that is updated when A sends a message to B and the chat is opened, and a "notificationsB" group that is updated when the chat windows is closed?
I can't find out how to do that because, even using groups this way, is A that has to tell B that he needs to update, and A doesn't know if B has to update the dialog or the notificationBar !
I hope that the question is clear, because it's not easy to explain it|
Thanks in advance :)
I don't know how a professional Java programmer would solve your problem, but when I wanted to create a chat, I used standard Primefaces Remote Command component and call-back parameters to create chat and send new messages to user's from the server.
There is a p:remoteCommand component on web-page. The purpose of the component is to get the latest messages from a particular user when action listener is invoked. New messages are passed from the server to javascript function (handler of oncomplete event of the component) via "call-back parameters". The function then checks if there are any messages and appends them to the chat box.
For more information, see How to create JSF chat with AJAX
UPD: the solution above is outdated. Now I would use JAX-RS web-services or web sockets to implement chat. There is also a commercial solutions for real-time data streaming: PubNub, Pusher, etc.

Resources