microsoft / xaml-designer-extensibility

Extensibility sample code for the Visual Studio XAML Designer
MIT License
67 stars 29 forks source link

How to change a property of a ViewItem #46

Open spellizzari opened 2 years ago

spellizzari commented 2 years ago

I'm porting a custom AdornerProvider to the new XAML designer, and I need to change the value of a dependency property on the control instantiated on the view (that is, in the isolated surface), without changing it in the code. If I set that property through ModelItem, it updates the XAML document's source code, which I don't want.

In the older architecture I could use View.PlatformObject to directly manipulate the view but that's not an option now. What can I do?