删除 WPF window 的标题栏文本但保留状态栏文本
Remove title bar text of a WPF window but keep status bar text
我在 Wpf 中使用 Metro Window,是否可以创建一个 window,它在任务栏中有文本,但在应用程序顶部的标题栏中没有文本?
目前我正在使用 <Controls:MetroWindow.LeftWindowCommands>
和 <Controls:MetroWindow.RightWindowCommands>
来自定义我的标题栏。我附上了没有标题文字的图片。 。
下面的图片有标题。
现在我的要求是我的应用程序是否可以像图 1 中的那样和任务栏中的第 4 个图一样
感谢大家的帮助。
尝试 PInvoke 方法。
[DllImport("user32.dll")]
static extern int SetWindowText(IntPtr hWnd, string text);
在 Window 已加载:
SetWindowText(new WindowInteropHelper(this).Handle, "Madan");
我在 Wpf 中使用 Metro Window,是否可以创建一个 window,它在任务栏中有文本,但在应用程序顶部的标题栏中没有文本?
目前我正在使用 <Controls:MetroWindow.LeftWindowCommands>
和 <Controls:MetroWindow.RightWindowCommands>
来自定义我的标题栏。我附上了没有标题文字的图片。
下面的图片有标题。
现在我的要求是我的应用程序是否可以像图 1 中的那样和任务栏中的第 4 个图一样
感谢大家的帮助。
尝试 PInvoke 方法。
[DllImport("user32.dll")]
static extern int SetWindowText(IntPtr hWnd, string text);
在 Window 已加载:
SetWindowText(new WindowInteropHelper(this).Handle, "Madan");