BotBuilder:自定义Formflow [英] BotBuilder: Customize Formflow

查看:87
本文介绍了BotBuilder:自定义Formflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能建议我更改您要更改什么"时需要设置哪种配置吗?在表单末尾说不确认后? 谢谢

解决方案

该消息是此处.

部分说明了该方法这里,唯一的区别是您需要更改Template来查找并且不需要更改FormConfiguration

的任何命令

private static IFormBuilder<T> CreateCustomForm<T>() where T : class
{
    var form = new FormBuilder<T>();
    var templateAttribute = form.Configuration.Template(TemplateUsage.Navigation);
    var patterns = templateAttribute.Patterns;
    patterns[0] = "My prompt";
    templateAttribute.Patterns = patterns;

    return form;
}

can you suggest me which configuration need to be set to change the "What do you want to change?" after saying no in confirmation at the end of the formflow? Thx

解决方案

That message is part of the of the TemplateNavigation resources and a Template in the FormConfiguration class is defined with the TemplateUsage.Navigation as seen here.

The way to go is partially explained here with the only difference that you need to change the Template to look for and that you don't need to change any command of the FormConfiguration

private static IFormBuilder<T> CreateCustomForm<T>() where T : class
{
    var form = new FormBuilder<T>();
    var templateAttribute = form.Configuration.Template(TemplateUsage.Navigation);
    var patterns = templateAttribute.Patterns;
    patterns[0] = "My prompt";
    templateAttribute.Patterns = patterns;

    return form;
}

这篇关于BotBuilder:自定义Formflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆