silverlight - Databinding a readonly property to an attached property doesn't work -


I want to database the visual position of a control (using code from the scene) on a property on a property Trying

  Get the string as a public property state _State and set (by value as string) _state = value NotifyOfPropertyChange (function ( ) State and Set End Enterprise  

This works perfectly, however, Get'm rid of Ng field and want to show it the way to go:

  string returns as a public read-only property state _vibajit object. State End And End And Property   

Why does not the second method work (I have also tried to return only a certain string Or property ReadOnly is not working: as soon as I do not return the backing field, this work stops)

Thank you for your insight.

[edit: some more details] XAM looks like this:

   The second method is also used in converter, but property callback callback is not called on  VisualStateNameProperty . 


Comments