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. Remembering the state of a property.

Remembering the state of a property.

Scheduled Pinned Locked Moved C#
1 Posts 1 Posters 12 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.
  • A Offline
    A Offline
    AtaChris
    wrote on last edited by
    #1

    Hello, within a plugin dll I instantiate an object as a property. The properties of this object are visible in the UI of the application that uses the plugin dll. I do not have acces to the code of the application. If I use the following code:

    [IsExpanded()]
    [Display(Name = "Direction")]
    public FilterManager Direction { get; set; }

    the properties of object "Direction" are visible in the UI. If I use the following code:

    [Display(Name = "Direction")]
    public FilterManager Direction { get; set; }

    the properties ob object Direction are no visible in the UI and the user has to expand it manually first. Question: Is there a way to save the last state of object "Drection", i.e. "expended by the user" or "not expended by the user", so that next time the user opens the UI he can start to work where he stopped working last time (otherwise the user must click himself trogh many levels) ?

    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