alielie
2025-03-17 c401a2f2fd1a509cdeb33e850bb5c2827074af48
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace WPFProject.Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        public void AddControl(System.Windows.Controls.Control WPFControl)
        {
            elementHost1.Child = WPFControl;
        }
    }
}