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

  • Home
  • SEARCH
  • 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 3980280
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:16:18+00:00 2026-05-20T05:16:18+00:00

Many properties in standard WPF elements support a small discrete set of values that

  • 0

Many properties in standard WPF elements support a small discrete set of values that can be specified as strings when the elements are created in XAML. For example, StackPanel’s Orientation property supports “Horizontal” and “Vertical” as discrete properties. IntelliSense aids you by giving you these two options after you open the quotes for the Orientation property. I know a value converter is involved in converting these to enum values of type System.Windows.Controls.Orientation enum.

How do you do this for a custom dependency property for your custom control? I want it to work just as it does for standard element dependency properties with the IntelliSense help and all.

Thanks

  • 1 1 Answer
  • 0 Views
  • 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-20T05:16:19+00:00Added an answer on May 20, 2026 at 5:16 am

    If they won’t change at run time, the answer is enum. If they do change, the way I do them is with strings (or objects that implement ToString()) and converters that fill in the possible values.

    Incidentally this is the same way the normal WinForms property grid works.

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

Sidebar

Related Questions

Suppose I have a customer object that has all of the standard customer properties
I have a scenario that i want to add some standard properties to my
I'm mapping a objectified relationship (the many->many mapping table contains properties), following this guide.
Many times I have seen Visual Studio solutions which have multiple projects that share
Many applications have grids that display data from a database table one page at
I'm trying to iterate through a set of keys in a properties file, so
I'm using DataServiceContext to load some entity projections (entities have many properties, to minimize
Many times we find ourselves working on a problem, only to figure out the
Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in
Many people use Mock Objects when they are writing unit tests. What is a

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.