gpt4 book ai didi

asp.net - 用户控件的描述(和许多属性)不显示信息

转载 作者:行者123 更新时间:2023-12-02 06:28:18 25 4
gpt4 key购买 nike

我想在属性工具箱中显示我的用户控件的一些描述信息。为控件编写一些属性后:

    public partial class WebUserControl1 : System.Web.UI.UserControl
{
int id;

[Description("Get or Set the main name of the css class to apply")]
public string CssClass { get; set; }

[Description("Get the number of nodes")]
public int NodesCount
{
get
{
return id;
}
}

[Browsable(true),
Category("Behavior"),
DefaultValue(""),
Description("The Uri to find the Xml file"),
Editor(typeof(System.Web.UI.Design.XmlUrlEditor), typeof(UITypeEditor))]
public string XmlPath { get; set; }

工具箱没有答案

enter image description here

有什么想法吗?

最佳答案

我已经确认了这一点,但我了解到,如果您在单独的项目中创建 WebUserControl 并添加 .dll 引用,您将获得您正在寻找的设计时支持。

关于asp.net - 用户控件的描述(和许多属性)不显示信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5131321/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com