我想获得写入C#的应用程序的主窗口。 Application.MainWindow属性不工作:(获取主窗口
用途:?
using System;
using System.Windows;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing;
using System.Collections.Generic;
using My;
using MyDialogs;
using System.Xml.Serialization;
using System.Runtime.InteropServices;
using System.Windows.Input;
using System.Windows.Media;
using System.Threading;
using System.Windows.Interop;
不以什么方式工作? –
你试着在WPF或Winforms?如果它是winform检查这个URL http://social.msdn.microsoft.com/Forums/en/winforms/thread/99df9c07-c117-465a-9207-fa3534982021 –
它不作为属性,Window对象存在。 – jahsen