Hi
This is GoXam Silverlight 2.1.1.5
Is changing the Style property of a Diagram, at run-time, supported?
When I try it I get inconsistent results.
Here is what a Diagram initially looks like with “Style A” set:
I then change the Style property of the Diagram to “Style B”:
I then change the Style property of the Diagram back to “Style A”. Sometimes this works and displays the same as in the first screenshot. However, sometimes artifacts of the previous Style remain:
Sometimes the Links don’t plot correctly:
Here’s the code we’re using to change the Style:
Diagram.StartTransaction(“ConfigureForDesignView”);
Diagram.Style = (Style)System.Windows.Application.Current.Resources[“MeasureDiagramStyle”];
diagram.Diagram.LayoutDiagram();
diagram.Diagram.PartManager.RebuildLinkElements();
Diagram.CommitTransaction(“ConfigureForDesignView”);
Diagram.Model.UndoManager.Clear();
Thanks
Justin