我的工作是在Wpf的地铁窗口,它可以创建一个窗口,其中有文本在任务栏,但没有文本在标题栏顶部的应用程序?
目前,我正在使用<Controls:MetroWindow.LeftWindowCommands>
和<Controls:MetroWindow.RightWindowCommands>
来定制标题栏。我有附加图片,没有标题文本。
。
下面的图片有标题。
现在我的要求是,我的应用程序在图1中看起来像图1,在任务栏中看起来像第4张图像吗?
谢谢你们的帮助。
发布于 2015-06-25 23:36:23
尝试PInvoke方法。
[DllImport("user32.dll")]
static extern int SetWindowText(IntPtr hWnd, string text);
在加载窗口时:
SetWindowText(new WindowInteropHelper(this).Handle, "Madan");
https://stackoverflow.com/questions/31066900
复制相似问题