/// <summary> /// /// </summary> /// <returns></returns> private void InitializePanel() { var context = DataContext as EditorContext; if (context == null) return; _drawable = new Drawable(); _drawable.Context = context; _drawable.InvalidateContainer = InvalidateContainer; _drawable.Initialize(); _drawable.Anchor = System.Windows.Forms.AnchorStyles.None; _drawable.Name = "containerPanel"; _drawable.TabIndex = 0; this.SuspendLayout(); this.Controls.Add(_drawable); this.ResumeLayout(false); _drawable.Select(); }
/// <summary> /// /// </summary> /// <returns></returns> private void InitializePanel() { var context = DataContext as EditorContext; if (context == null) return; _drawable = new Drawable(); _drawable.Context = context; _drawable.InvalidateContainer = InvalidateContainer; _drawable.Initialize(); _drawable.Dock = DockStyle.Fill; _drawable.Name = "containerPanel"; _drawable.Margin = new System.Windows.Forms.Padding(0); _drawable.TabIndex = 0; this.SuspendLayout(); this.tableLayoutPanel1.Controls.Add(_drawable); this.ResumeLayout(false); _drawable.Select(); }