Beispiel #1
0
        private void add_MouseDown(object sender, MouseButtonEventArgs e)
        {
            UserControl1 userControl = new UserControl1();

            list.Children.Add(userControl);
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myUserControl1 = ((WpfApp1.UserControl1)(target));
                return;

            case 2:
                this.gridMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\Window1.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.on_Button_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.button1_movie = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 5:
                this.stackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 6:
                this.button2 = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.textBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.mediaElement = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 9:
                this.volumeSlider = ((System.Windows.Controls.Slider)(target));
                return;

            case 10:
                this.select = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\Window1.xaml"
                this.select.Click += new System.Windows.RoutedEventHandler(this.select_file);

            #line default
            #line hidden
                return;

            case 11:
                this.playBtn = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\Window1.xaml"
                this.playBtn.Click += new System.Windows.RoutedEventHandler(this.playfile);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }