public override void LoadState(XElement state) { Assert.ArgumentNotNull(state, nameof(state)); foreach (var element in state.Elements()) { DesignSurface.LoadShape(element, new TemplateShapeContent(this)); } }