コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((VideoArchive.App.MainWindow)(target));
                return;

            case 2:
                this.root = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.media = ((VideoArchive.App.Controls.RepeatMediaElement)(target));
                return;

            case 4:
                this.mediaVolume = ((System.Windows.Controls.Slider)(target));
                return;

            case 5:
                this.overlay = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.overlayText = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.VideoList = ((System.Windows.Controls.ListBox)(target));
                return;

            case 2:
                this.root = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.media = ((VideoArchive.App.Controls.RepeatMediaElement)(target));
                return;

            case 4:
                this.mediaVolume = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }