using BeDesignerSCADA.Controls; using System.Windows; namespace BeDesignerSCADA { /// /// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { CanvasPanelNew mainCanvas = new CanvasPanelNew($"{System.AppDomain.CurrentDomain.BaseDirectory}Layouts\\可视化界面菜单布局.yf"); CodeCanvasPanel codeCanvasPanel = new CodeCanvasPanel(); public MainWindow() { InitializeComponent(); grid.Child = mainCanvas; //gridCode.Child = codeCanvasPanel; } } }