microsoft / microsoft/AdaptiveCards
[Designer] ProgressBar can not bind `value` and `max` to data
Open
Nobody has claimed this yet.
Area-Designer
Bug
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Problem Description
I want to use ProgressBar to show progress where I know the range and a current state, but I can not bind data to it it seems.
Card JSON
{
"type": "AdaptiveCard",
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.6",
"body": [
{
"type": "TextBlock",
"text": "Copilot Monthly Quote",
"wrap": true
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "ProgressBar",
"value": "${value}",
"max": "${max}"
}
],
"backgroundImage": {
"verticalAlignment": "Center"
},
"style": "default",
"showBorder": true
},
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "TextBlock",
"text": "25%",
"wrap": true
}
],
"backgroundImage": {
"verticalAlignment": "Center",
"horizontalAlignment": "Center"
}
}
]
}
]
}
Screenshot
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided Card JSON in the Designer and inspect how ProgressBar handles data binding for value and max. Done means both properties resolve from card data and the rendered progress reflects those values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100