Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Dynamic Properties

Dynamic Properties

Scheduled Pinned Locked Moved C#
visual-studioquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve Schaneville
    wrote on last edited by
    #1

    Does anyone know how I can get my property that is a member of my Component, so show up in the Dynamic Properties section of the property editor? I want to bind it to the app.config file, and I expect it to appear in the designer so I can bind easily through the IDE... (did I explain that clear enough?) Thanks! ~Steve

    N 1 Reply Last reply
    0
    • S Steve Schaneville

      Does anyone know how I can get my property that is a member of my Component, so show up in the Dynamic Properties section of the property editor? I want to bind it to the app.config file, and I expect it to appear in the designer so I can bind easily through the IDE... (did I explain that clear enough?) Thanks! ~Steve

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      The following attribute will place FirstName within the Dynamic Properties and then the Advanced section.

      private string _name;
      [Category("(DynamicProperties)")]
      public string FirstName
      {
      get{return _name;}
      set{_name = value;}
      }

      - Nick Parker
      My Blog | My Articles

      S 1 Reply Last reply
      0
      • N Nick Parker

        The following attribute will place FirstName within the Dynamic Properties and then the Advanced section.

        private string _name;
        [Category("(DynamicProperties)")]
        public string FirstName
        {
        get{return _name;}
        set{_name = value;}
        }

        - Nick Parker
        My Blog | My Articles

        S Offline
        S Offline
        Steve Schaneville
        wrote on last edited by
        #3

        Thanks!! "CategoryAttribute" was one I wasn't familiar with... ~Steve

        H 1 Reply Last reply
        0
        • S Steve Schaneville

          Thanks!! "CategoryAttribute" was one I wasn't familiar with... ~Steve

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          You should take a look at the classes in the System.ComponentModel namespace for more helpful design-time attributes and more. A good section to read if you're new to design-time extensibility is Enchancing Design-Time Support[^] in the .NET Framework SDK documentation.

          Microsoft MVP, Visual C# My Articles

          S 1 Reply Last reply
          0
          • H Heath Stewart

            You should take a look at the classes in the System.ComponentModel namespace for more helpful design-time attributes and more. A good section to read if you're new to design-time extensibility is Enchancing Design-Time Support[^] in the .NET Framework SDK documentation.

            Microsoft MVP, Visual C# My Articles

            S Offline
            S Offline
            Steve Schaneville
            wrote on last edited by
            #5

            Great stuff! Thanks Health and Nick. Yes, I'm new to .NET entirely, and am very impressed with what I'm seeing so far. Thanks for the tips and pointers... ~Steve

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups