c# - How to use a dependency property defined in custom class? -


itemprop = "text">

I have a class that defines some custom dependency properties for the text box :

And when I try to use these properties in Xaml:

  & lt; Name of the text box = "TextBox_1735" SelectionBegin = "{TextBox_1735SelectionBegin Binding, UpdateSourceTrigger = PropertyChanged}" SelectionLength = "{Binding TextBox_1735SelectionLength, UpdateSourceTrigger = PropertyChanged}" />  

It is an exception that property can not be resolved by 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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -