Sharepoint custom web part property does not show up in the toolbox

后端 未结 3 1538
挽巷
挽巷 2021-02-19 13:33

I have defined a boolean property as follows:

 [Browsable(true), Category(\"Display\"), DefaultValue(false),
  WebPartStorage(Storage.Shared), FriendlyName(\"Obe         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 14:14

    You are on the right track. You just need to use different attributes.

    [Personalizable(PersonalizationScope.Shared)]
    [WebBrowsable(true)]
    [Category("Display")]
    [WebDisplayName("Obey Workflow")]  
    [Description("")]  
    public bool ObeyWorkflow { get; set; }
    

提交回复
热议问题