开发者

Description(and many attributes) for User Control are not displaying info

开发者 https://www.devze.com 2023-02-13 12:19 出处:网络
I want to show some description information of my User Control in the Propereties toolbox. After writting some attributes for the control:

I want to show some description information of my User Control in the Propereties toolbox. After writting some attributes for the control:

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

    [Description("Get or Set the m开发者_C百科ain 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; }

There are no answer from the toolbox

Description(and many attributes) for User Control are not displaying info

Any Ideas?


I have confirmed this yet, but I have read that you if you create the WebUserControl in a separate project and add the .dll reference, you will then get the design time support you are looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消