void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((Patarag.Viewer)(target)); return; case 2: this.ViewPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.currentImagePage = ((Patarag.MultiSizeImage)(target)); return; case 4: this.Separator = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.currentImagePage1 = ((Patarag.MultiSizeImage)(target)); return; } this._contentLoaded = true; }
private static void HandleSourceChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { MultiSizeImage img = (MultiSizeImage)sender; img.UpdateAvailableFrames(); }