dotnet / docs-desktop

This repository contains .NET documentation related to Windows Forms (winforms) and Windows Presentation Foundation (WPF).
Creative Commons Attribution 4.0 International
194 stars 176 forks source link

Clarify dependency property - it's still a mystery to me #119

Open aybiss opened 3 years ago

aybiss commented 3 years ago

I still have no idea why I would use a dependency property or what it does that a normal property would not do. Needs an example and illustration of the difference in appearance or behaviour that would result.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

adegeo commented 3 years ago

Hi. I believe the Property functionality provided by a dependency property section describes what you're looking for. It doesn't have a break down table or chart though.

Basically dependency property enables enhanced scenarios such as animation, styling, value inheritance, dynamic resource binding, and attached properties.

I'm going to close this issue. If you have further questions, feel free to ask.

adegeo commented 3 years ago

I'm going to reopen this. I think adding a chart or something like you said would be helpful when we get to redoing this content in .net 5