/// <summary> /// Create a key. /// </summary> /// <param name="layout">Layout for key.</param> /// <param name="top">Top position within layout space.</param> /// <param name="left">Left position within layout space.</param> /// <param name="height">Bottom position within layout space.</param> /// <param name="width">Right position within layout space.</param> public void CreateStateKey(StateKeyLayout layout, double left, double top, double width, double height) { var list = layout.StateName == null ? defaultShowHide : otherShowHides[layout.StateName]; var control = CreateStateControl(layout, list, left, top, width, height, isBindingDefault); Bind(control); }
/// <summary> /// Create an instance of the control type. /// </summary> /// <param name="layout">The control layout.</param> /// <param name="list">The show/hide list</param> /// <param name="top">Top position within layout space.</param> /// <param name="left">Left position within layout space.</param> /// <param name="height">Bottom position within layout space.</param> /// <param name="width">Right position within layout space.</param> /// <param name="isVisible">Is the control initially visible?</param> /// <returns>The control.</returns> protected abstract TControl CreateStateControl(StateKeyLayout layout, StateShowHideContainer <TControl> list, double left, double top, double width, double height, bool isVisible);