Hi using adaptive cards on my chatbot ui, i have a Adaptive card of "type": "Input.Date".When the user opens up the date panel, i need to high light few dates based on custom logic. is that something that adaptive cards implementation supports. I have a specific scenario where input.date selection should be used to pre-filter input.time as part of the same card.
That is not currently supported in the property set of the Input Date element
http://adaptivecards.io/explorer/Input.Date.html
You should request this as a feature on the GitHub site:
https://github.com/Microsoft/AdaptiveCards/issues
Related
I am getting some data from an API call and I want to display them in an adaptive card as a choice set, then the user will be able to choose one or more choices to do action on them. The problem is that the array of choices is dynamic. My question is how to pass an array to the choice set in the adaptive card. I am writing the adaptive card on https://adaptivecards.io/designer/
here is an example of what I want:
Here is the way to do this:
Set the array in this way, each value has title and value as choices:
And from the adaptive card, in the ChoiceSet, call it this way:
How to give custom style to date picker control of adaptive card for Android platform
Also is it possible to allow typing date on date picker on mobile with this adaptive card date control?
I have an adaptive card which has multiple input controls. and instead of submit I have show Details button on clicking of which I need to show the details based on inputs provided. Is there a way to refer to the values dynamically and show the content of the details cards based on what is chosen in the main card?
No, that is not possible.
The ShowCard contains the entire JSON payload of another complete card and since the cards are declarative, rather than dynamic, you need to know the ShowCard payload at the time you create the original JSON
I want to record from the microphone and while recoring, I'd like to display the current voice level like an equalizer or a wave form. It should look like a vertical progressbar which goes up and down.
Is there an existing control for this or does someone have an idea how to do this?
There is no control per-se, but you could implement your own. You have access to the byte array for the recorded content. Given that you have the sample rate and the total content length, you can get the volume and transform it into a visual element.
I need to allow a user to select a number between 5 and 30 in my Windows Phone app, and I find it overall difficult to do.
I am using pivot control so I shouldn't use slider according to MS guidelines.
I have downloaded WPToolkit and they have a neat DatePicker and TimePicker controls, and I think something similar would be perfect to pick a number (just the same way you pick time when setting up an alarm).
I was considering simple textbox, but I think it would be much nicer to just pick from a list of numbers instead of typing in...
Any ideas how to implement it? Or have anyone done that alrady? I think I could put like a textbox with focus or click event that would redirect to another page that has LongListSelector and once an item has been selected I would redirect back to the original page and populate the textbox with the selected number... Is that doable?
You can download the Toolkit source code and modify the DatePicker/TimePicker control to be more generic.
If you don't want to do that, you could just use the ListPicker control instead which is also included in the toolkit. Simply pass a list of numbers between 5 and 30 and the user can pick from the list.
You need to use LoopingSelector from Windows Phone Toolkit. An example how to customize it is here http://www.maxpaulousky.com/blog/archive/2011/01/31/windows-phone-looping-selector-for-digits.aspx.