Can someone explain the argument that sayControl.DisplayMemberPath has a dependency property, not just a regular CLR property?
Are there real life scenarios when such properties are used in data binding scripts, styles, or other dependency situations.
Thank.
Update:
The reason for this question is statements such as
Creating dependency on your property ownership is not always necessary or will depend on your need. Sometimes a typical technique is to support your property with a private field.
in the MSDN documentation , which make-control developers make declarations of dependency properties that do not have clearly identifiable benefits to the dependency property. private field is adequate.
. , ( ). - , DP, , -, /, .. ; , , .., , .
3'rd , Sync-fusion; Binding . :
wpf CLR ?
DP, - (WPF Controls), DP; , ( Binding, styling ..), .
DisplayMemberPath, , , , ...
DisplayMemberPath
, DataGrid, , DisplayMemberPath ViewModel.
DataGrid
.
Source: https://habr.com/ru/post/1765975/More articles:VS2008, Windows Mobile Installer Project - installerProviding event handling when switching gen_event handlers in Erlang / OTP - eventsWhat triggers IE's enhanced security warning - jqueryRails 3 has_and_belongs_to_many creates checkboxes in sight - ruby-on-railsКак импортировать пакеты Java в файл js - javascriptWhy do so many wpf controls implement CLR properties instead of dependency properties? - controlsContinuous fractal coloring - openglIPad preprocessor detection directive - c-preprocessorHow to set custom font in UIWebView? - iphoneHow to store old version of ID String in database design? - databaseAll Articles