コード例 #1
0
        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;
        }
コード例 #2
0
        private static void HandleSourceChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            MultiSizeImage img = (MultiSizeImage)sender;

            img.UpdateAvailableFrames();
        }