Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1094595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:59:37+00:00 2026-05-16T23:59:37+00:00

I am looking for a solution for this scenario – I need to implement

  • 0

I am looking for a solution for this scenario –

I need to implement a feature to allow user to add various controls to canvas(WPF, custom and third party ) and then select any one of them and modify some properties in PropertyGrid(changes needs to be reflected in UI).

I don’t want to expose all the properties of any control only some of them(relevant to end user); apart from this there are some properties which will be common for all controls e.g. Title, Value(Value will be bound to some property of a control, say Text of TextBox and Content of Label) etc.

I am thinking of putting all the common properties at one place.

Things I am confused about –

  1. How to create such base class, whether to use UserControl or Custom Control for this?

  2. How will the binding work between Control, base class properties and PropertyGrid?

  3. What type of object will I expose to PropertyGrid?

Any idea on what approach should be followed in this case, any kind of input will really be helpful.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:59:37+00:00Added an answer on May 16, 2026 at 11:59 pm

    Perhaps you should start from this book WPF Control Development Unleashed.

    1) Custom control should be more appropriate.
    2) For binding – You should learn more about TemplateBinding, RelativeSources binding etc.,
    3) Your property can be either normal property or dependency property. Both, of them will be available for you in property grid to edit. If your exposed property is bindable, obviously, it should be dp. If you expose a property (means a property with public access specifier) it would be enough to get it available in the property grid.

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a secure solution for this particular scenario : I have
I've been spending hours looking for a solution on this problem. As you can
I've been looking around for a solution to this thing but I haven't found
I'm looking for the generally accepted/best solution to this problem. Problem I have a
I'm looking for a nice tight regex solution to this problem. I'm looking to
I am looking for a general and complete solution to this common problem! I
I came across this thread when I was looking for a solution, but it
Looking for a non-JS solution. Say I had something like this: <ul> <li> <form>
ive read this article by Mark Murphy, while i was looking for a solution
I have a scenario that looks like this: User A is a registered user.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.