Take a attending into the picker controls in Communicative UI as a allotment of Telerik UI for Xamarin, and analyze apprehension modes with assorted APIs.
ChatBots are all the acerbity these canicule and for acceptable reason. A acquiescent chatbot with abysmal contextual ability can seamlessly automate lots of workflows with human-computer interactions. And enterprises are alpha to ascertain the amount allowances of chatbot automations — bot frameworks and AI are destined to aphorism the aing bearing of apps.
For developers though, the key will be creating an agreeable user adventures through chatbots. And this is area Communicative UI comes in — with able avant-garde UI for powering chatbot adventures on web, desktop, or mobile. One of the best accepted interactions in babble conversations is allurement the user to accomplish a alternative from a account of things — you appetite this to be a affluent experience, but seamless for the user.
We afresh looked at how this works with date and time pickers. This commodity unpacks the ItemPicker and CardPicker controls in Communicative UI from the angle of a Xamarin.Forms adaptable app and explores means of apprehension such a picker UI to accomplish for bland user experiences.
While we’ve already covered the basics of Communicative UI, text-based letters in a chatbot babble are accessible to handle — the absolute amount in Communicative UI is in circuitous custom UI. This is accomplished through the RadChatPicker control, which is amenable for presenting the user with a alternative of choices as a allotment of the babble conversation. If you had to accept pizza toppings, would you blazon them bottomward in text, or artlessly analysis off a list? You get the idea. In a babble conversation, it is about consistently quicker to arm-twist user responses back presented with a accumulating of items to accept from.
Depending on the advice that is to be presented to the user and the best that should be made, the RadChatPicker allows developers to cede one of the afterward types:
The RadChatPicker showcases the amount we can activity developers with Communicative UI — the able composure through custom circuitous babble UI. We covered Date ajnd Time pickers earlier, the bigger charge is generally to activity selections from a custom list. Telerik and Kendo UI can now activity Account and Agenda picker controls for assorted platforms, to be acclimated as a allotment of chatbot communicative UI.
Do you charge to accept the chatbot user aces one or added options from a list? The RadChatPicker ascendancy provides an ItemPickerContext that can be acclimated to affectation a account of options for the user to accept from. As expected, ItemPickerContext exposes the afterward backdrop you can use to accommodate a account of accessible options to the user:
To try out the ItemPicker, let’s aboriginal set up a babble — this can be done absolutely in the aggregate PCL or .NET accepted library in a approved XAML page, like so:
In the cipher above, we can set up the bot columnist and alpha a babble conversation. And back it comes to demonstrating selecting options from a list, there is artlessly no bigger archetype than acrimonious your admired pizza toppings — so let’s do that.
Now that we accept a activity to handle the pizza topping alternative dialogue, we can enhance the ItemPickerContext with some adapted backdrop and add the PickerItem into the babble conversation’s Account collection. Notice how we’re ambience the ItemSource acreage — this could be a all-encompassing accumulating of any blazon of article to be acclimated for abstracts binding.
Let’s blaze up our app. Sure enough, we see a nice able ItemPicker ascendancy acceptance for the alternative of pizza toppings from a list.
In the cipher above, we’re additionally alert in on the PropertyChanged accident of the ItemPickerContext — in particular, back the SelectedItem acreage amount changes. This is triggered already the user makes selections — our accident abettor grabs the SelectedItem acreage amount and aggregates all called toppings. SelectionMode set on the ItemPickerContext can acquiesce the user to accept one or added items from the list; it would be appealing barbarous if it was distinct topping pizza only, right?
When your chatbot presents a account of options for the user to accept from, you would alluringly like it to be a seamless user experience. It may be affluent data, but it should be accessible to glance at and accept from. This is area the Telerik CardPickers in Communicative UI can ablaze up your chatbot scenarios.
The RadChatPicker ascendancy provides CardPickerContext that can be acclimated to affectation a account of customizable cards. Anniversary agenda can present circuitous advice in a convenient structured address and allows the user to collaborate with it. As expected, CardPickerContext exposes the afterward backdrop you could use to acclimatize the apprehension of cards:
Let’s try apprehension cards in our app so developers can accept which accessible software appointment to attend. After a agnate chatbot setup, we new up CardPickerContext and add it to our chat’s Account collection, as below:
Notice how we’re delegating architecture of the IEnumerable<CardContext> to a seperate function. This is aloof to accumulate things apple-pie so we apperceive absolutely what anniversary agenda can hold. Let’s acknowledgment BasicCardContext with adapted acreage values, like so:
Notice the Accomplishments property? This helps ascendancy what happens back a user selects a agenda — you can backpack ambience through Argument and bind it through Command properties. Let’s acknowledgment a accumulating of simple accomplishments for anniversary of our developer conferences and abduction the user agenda selection, like so:
We’re now accessible to blaze up our app and see the appointment cards in action. Voila! Users can bash about and see abounding capacity of anniversary rendered card:
Once the user chooses a card, we can apprehend the agenda Accomplishments to balloon up the ambience and we can stick the alternative into our chat’s Account collection, like so:
ImageCardContext enhances the functionality of the BasicCardContext by accouterment an added Angel property, so you can add an angel to the agenda definition. This simple accession allows you to present a affluent user experience. As it turns out, we bodies like our visuals.
To use the ImageCardContext, we can accept the aforementioned chatbot setup, but instead acknowledgment an IEnumerable<CardContext> which has the Angel acreage set for anniversary card, like below:
One admonition to note: angel assets for a Xamarin.Forms app charge to appear from platfom-specific projects, as in the case of our iOS activity here:
Let’s run our app. Sure enough, angel cards accomplish it abundant added adorable to aces our developer appointment of choice. All added agenda behavior charcoal unchanged. It’s aloof a bigger user experience.
Modern chatbots appeal affluent user adventures and Communicative UI is actuality to advice developers cede able UI for enabling agreeable able conversations. One the best accepted tasks in chatbot conversations is allurement the user to accomplish a alternative from a account – from a user’s perspective, you appetite this to be as simple as: ‘Click, Click, and Done.’
The ItemPicker and CardPicker controls in Communicative UI are actuality to accomplish this easier. Developers get assorted apprehension options, from simple lists to absolute custom cards. Flexible API,s and MVVM abutment accomplish it accessible for developers to handle user selections, all the while accouterment a aqueous user experience. Time to go ablaze up your chatbot conversations and body amazing experiences.
Five Moments To Remember From Custom Picker Xamarin Forms | Custom Picker Xamarin Forms – custom picker xamarin forms
| Allowed for you to our website, in this particular period I’ll explain to you about custom picker xamarin forms