I am creating a chatBot using microsoft Bot framework using SDKV4 in C#. The BOT has multiple waterfall dialogs.
In this one dialog class shows few choice options in form of buttons using Prompt Options.I want to know whether or is there a way to highlight one(only one) of the buttons displayed in different color.
If we observe, in general the choice buttons are displayed in White(background of button) and Blue(blue text and border of button) combination.
So is there a way to change the white background color? Either only color or making the button to give blinking effect or flashing effect based on a certain conditions.
Let's say there is a bool flag ,if it is true i want to display one of the option in other color or as is if it is false.
Code:
return await stepContext.PromptAsync(
"choicePrompt",
new PromptOptions
{
Prompt = stepContext.Context.Activity.CreateReply("Please click/choose any one from the following: "),
Choices = new[] { new Choice { Value = "Option0" }, new Choice { Value = "Option1" }, new Choice { Value = "Option2" }, new Choice { Value = "Option3" }, new Choice { Value = "Option4" }, new Choice { Value = "Option5" }}.ToList(),
RetryPrompt = stepContext.Context.Activity.CreateReply("Sorry, I did not understand that. Please choose any one from the options displayed below: "),
});
I want the Option2 to be displayed in different color based on Bool flag as tried to explain above.
Is this possible? or this is a wrong expectation and it cannot be done?
if it is possible can anyone please provide me the detailed steps to achieve this. Please note that i am a bit new to coding hence i would humbly request to provide detailed steps if this is behaviour is achievable.
Thanks in Advance
Regards
ChaitanyaNG