public DiagramControl() { LayoutManager = new SequenceDiagramLayoutManager(); Loaded += (sender, args) => OnControlLoaded(); IsVisibleChanged += (sender, args) => PerformLayout(); SizeChanged += (s, a) => PerformLayout(); }