private void InitializeComponent() { this.SuspendLayout(); this.wpfSchemaContainer = new WPFShemaContainer(); // // wpfContainerHost // this.wpfSchemaContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.wpfSchemaContainer.Location = new System.Drawing.Point(0, 0); this.wpfSchemaContainer.Name = "WPFSchemaContainer"; this.wpfSchemaContainer.Size = new System.Drawing.Size(292, 273); this.wpfSchemaContainer.TabIndex = 0; this.wpfSchemaContainer.Text = "WPFSchemaContainer"; // SchemaView // this.ClientSize = new System.Drawing.Size(292, 273); this.Controls.Add(this.wpfSchemaContainer); this.Name = "SchemaView"; this.ResumeLayout(false); //this.SavedScrollPosition = new System.Windows.Point(0.0, 0.0); }
protected override void OnClosed(EventArgs e) { base.OnClosed(e); _wpfSchemaContainer.Child.KeyDown -= new System.Windows.Input.KeyEventHandler(WpfKeyDown); _wpfSchemaContainer.Dispose(); _wpfSchemaContainer = null; }
protected override void OnClosed(EventArgs e) { wpfSchemaContainer.Dispose(); wpfSchemaContainer = null; base.OnClosed(e); }
public SchemaView(IDocument doc) : base(doc) { Document = doc; this._wpfSchemaContainer = new WPFShemaContainer(); IsModified = true; MainPanel = Document.Content as System.Windows.Controls.Panel; InitializeComponent(); }