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 695453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:57:39+00:00 2026-05-14T02:57:39+00:00

Can anybody explain me what a dependency property is in WPF and what is

  • 0

Can anybody explain me what a dependency property is in WPF and what is its use. I know there are a lot of tutorials on google for it, but they teach how to create a dependency property. I am confused as to where I would use it. I mean will I use it in XAML? If anybody could explain me in simple terms, that would be great.

It would be nice if a simple example is shown along with XAML, with example, of how I might use the property, and what would be the effect after I use it.
Thanks a lot for all your answers..

  • 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-14T02:57:40+00:00Added an answer on May 14, 2026 at 2:57 am

    The many links listed should give you a good idea of what dependency properties are, but in general, the easiest way to think about them I believe is the following:

    Dependency properties are what you need to use for properties of user interface elements, if you want to be able to bind them using WPF’s data binding. In order to be the “Target” of a data binding operation, you’ll need to make the property a Dependency Property.

    When you’re implementing a standard class (which becomes the DataContext of a “control”), you’ll want to use INotifyPropertyChanged instead of DPs. This allows that class to be a binding “Source”.

    In general, you’ll only want to make Dependency Properties if you’re making something that will be bound in XAML, as the Target of a UIelement. For example, say we have XAML like this:

    <local:MyControl ControlProperty="{Binding SomeProperty}" />
    

    Normally, ControlProperty will be a Dep. Property, since it’s the binding target, and SomeProperty will be a standard CLR property (not a DP), in a class that implements INotifyPropertyChanged.

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

Sidebar

Related Questions

Can anybody explain exactly how a web beacon works? I know they're generally used
can anybody explain this why its happening int i=0; i=i++; i=i++; i=i++; System.out.println(i); it
Can anybody explain the importance of NSNotificationCenter? Where to use them? What is the
Can anybody explain the following Perl code for me, please? I think its in
Can anybody explain why we use ? in Collection generics. As for example :
Can anybody explain why partial specialization is not valid for function template but it's
Can anybody explain to me why there is a difference between these two statements?
Can anybody explain me, how can I create WPF Window in BackgroundWorker thread without
Can anybody explain me, what is use of vector class? My Professor mentioned about
Can anybody explain me why below code is working on private member variable? public

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.