public SinglePagePDFPanel(MuPDFPanel parent) { InitializeComponent(); this.parent = parent; SizeChanged += (s, e) => { scrollViewer = this.FindChild <ScrollViewer>(); }; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PdfViewer = ((MuPDFLibrary.MuPDFPanel)(target)); return; case 2: this.FileUpload = ((System.Windows.Controls.DockPanel)(target)); return; case 3: this.FilesListBox = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }