You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As expected the resulting toast uses the values defined in progressData to fill in the -Status and -Value parameters of the progress bar and the -Content parameter of New-BTText, however the -Content parameter of $buttonAction is displayed as the string "buttonName" rather than the value of 'buttonName' in $progressData.
Actual Behavior
The $buttonAction should display the text "Ready, set, go!" as defined in $progressData
Digging into the code a bit, it looks like objects must be of class 'AdaptiveText' to be updated by the data binding, and buttons are not of this class. This appears to be a limitation of the windows toast system rather than an issue with BurntToast.
Nevertheless, I'll keep this issue open in case either someone has an idea of how to change the button content in some other way than by using data binding and also, because I think if would be good to flag in the documentation what the limitations of the data bindings are.
Steps to Reproduce
Expected Behavior
As expected the resulting toast uses the values defined in
progressData
to fill in the-Status
and-Value
parameters of the progress bar and the-Content
parameter ofNew-BTText
, however the-Content
parameter of$buttonAction
is displayed as the string "buttonName" rather than the value of 'buttonName' in$progressData
.Actual Behavior
The
$buttonAction
should display the text "Ready, set, go!" as defined in$progressData
Experience with Toast
Beginner
Environment data: PowerShell
Environment data: OS
Environment data: BurntToast
Consent to Attribution
The text was updated successfully, but these errors were encountered: