In the process of debugging an issue with the size of Diagram's ManipulationAdorner, I'm wondering how the size is set, please?
This is in WPF, and I'm currently on v. 2021.1.325.40.
In Visual Studio, in the Live Property Explorer, I see the Height and Width listed as being set via "Animation and Visual States" (see attached image), and the values are not what I want. I'm kind of assuming the properties are being set and held via animation, but I'd be glad for the confirmation.
The issue is that the size of the ManipulationAdorner is incorrect. The discrepancy happens as the size of the business object represented as selected in the Diagram is changing for business reasons.
In a particular situation, for simplicity, a single NodeViewModelBase is selected. I see the NodeViewModelBase's Width and Height being set to the correct values as the size of the business object changes. However, the process of updating the business object has some intermediate, incorrect values for Width/Height in quick succession. These intermediate values are just as a result of property-change notification order, and one of these intermediate values "sticks" or is the incorrect value that shows. The correct value is the final value set, however.
Deselecting and reselecting the object results in a correctly sized ManipulationAdorner.
I don't have a simple example at hand, unfortunately. However, is there enough information here to enable any guidance for further debugging, please? Could the quick and repeated setting of Width & Height be interacting with the timing of WPF's animation system or with the starting/stopping of animations, if these values are indeed being controlled by animation?
I don't think I see any questions of this sort here or elsewhere on other forums.
Thanks for any info and advice!