How to change properties of custom control?

how to show properties of the custom control in visual studio IDE 2008 properties window?

  • i have created a custom graph control in WPF, now i want to show it's properties in the properties window in visual studio IDE 2008, so a user can change the properties at the design time.how can i do it in WPF custom controls?? please help me guys?? regards, rangana.

  • Answer:

    You don't need to do anything: Visual Studio will work it out by inspecting the control's API. However, you can ship a .design.dll assembly to customise or improve the experience. See http://msdn.microsoft.com/en-us/library/bb628660.aspx in the Visual Studio help, or http://blogs.msdn.com/jnak/archive/2007/08/10/adding-design-time-metadata-to-cider-and-blend.aspx for a more tutorial walkthrough. But to reiterate this additional metadata is optional and your users will be able to configure most basic properties without it.

ranganaMIT at Stack Overflow Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.