what‘s differences of DependencyPropertyKey and DependencyProperty?

兰树豪 381 Reputation points
2023-02-17T14:11:52.9266667+00:00

what‘s differences of DependencyPropertyKey and DependencyProperty? Like the name and the person? please help me to understand

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,845 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,343 questions
0 comments No comments
{count} votes

Accepted answer
  1. Hui Liu-MSFT 48,646 Reputation points Microsoft External Staff
    2023-02-20T03:05:45.4633333+00:00

    DependencyPropertyKey Class provides a dependency property identifier for limited write access to a read-only dependency property.

    DependencyPropertyKey instances are obtained as the return value of a dependency property registration call using the methods RegisterReadOnly or RegisterAttachedReadOnly. For more information you could see DependencyPropertyKey Class .

    DependencyProperty Class represents a property that can be set through methods such as, styling, data binding, animation, and inheritance. For more information you can refer to DependencyProperty Class .


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Castorix31 88,056 Reputation points
    2023-02-17T17:57:46.1033333+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.