c# - How to use a dependency property defined in custom class? -
I have a class that defines some custom dependency properties for the And when I try to use these properties in Xaml: It is an exception that property can not be resolved by text box
:
& lt; Name of the text box = "TextBox_1735" SelectionBegin = "{TextBox_1735SelectionBegin Binding, UpdateSourceTrigger = PropertyChanged}" SelectionLength = "{Binding TextBox_1735SelectionLength, UpdateSourceTrigger = PropertyChanged}" />
SelectionBegin
.
What you should look like is that the standard dependency properties must be declared in control, from the text box You can also obtain and add your dependency properties to the derived class.
Comments
Post a Comment