【发布时间】:2019-08-30 19:33:34
【问题描述】:
我在我的 Microsoft ChatBot 中使用 AdaptiveCard 输入控件。谁能给我提示如何获取自适应控件的 TextInput 或 ChoiceSet 的更改属性或事件。例如,在选择 ChoiceSet 时,我想在 TextInput 控件中填充一些值?
//new TextBlock() { Text = "Country" },
new ChoiceSet()
{
Id = "Country",
Speak = "<s>Please enter your country.</s>",
IsMultiSelect = false,
Style = ChoiceInputStyle.Compact,
Separation= SeparationStyle.Default,
Choices = choices,
Value = "country"
},
new TextInput()
{
Id = "Mobile",
Speak = "<s>Please enter your mobile with country code.</s>",
Placeholder = "+(country code)(Your Phone Number)",
Style = TextInputStyle.Tel,
IsRequired = true
},
【问题讨论】:
-
这在每个渠道都是不可能的,除非您正在制作自己的 Direct Line 客户端。你用的是什么频道?
-
我在网站上使用 Microsoft ChatBot。表示我们正在使用网络聊天频道。
-
请使用AdaptiveCards 1.1.2 NuGet 包,而不是Microsoft.AdaptiveCards。
标签: c# botframework textinput adaptive-cards web-chat