在工具箱 Visual Studio 2012 中创建自定义 html 控件 [英] Create custom html control in toolbox Visual Studio 2012

查看:25
本文介绍了在工具箱 Visual Studio 2012 中创建自定义 html 控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Visual Studio 工具箱中创建一个自定义的 html 控件:

i want create a custom html control in Visual Studio toolbox:

例如,如果我需要为自定义表格创建模板(在工具箱中):

For example, if i need create a template for custom table (in toolbox):

<table id="table1" data-src="">
    <thead>
        <tr data-id="" data-u="">
            <td></td>
        </tr>
    </thead>
    <tbody>
    </tbody>
</table>

有没有办法做到这一点?

Is there any way to do this?

谢谢,对不起,我的英语!

Thanks an sorry my english!

推荐答案

只需在编辑器中选择您的自定义 html 并将其拖到工具箱窗格中,就会使用您拖动的文本创建自定义工具箱项.

Just select your custom html in editor and drag into toolbox pane and custom toolbox item will be created with the text you dragged.

这篇关于在工具箱 Visual Studio 2012 中创建自定义 html 控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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