我正在开发一个WPF应用程序。 我需要像窗口任务栏一样在屏幕顶部显示一个窗口。
这是我的XAML代码:
<Window x:Class="testProject.Notification.TestWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:testProject.Notification"
mc:Ignorable="d"
Title="TestWindow" Height="80" Topmost="True" ResizeMode="NoResize" WindowStyle="None">
<Grid Background="Blue"/>
</Window>
我需要一个类似下面这样的蓝色窗口(来自Mac OSX应用程序的截图):
![enter image description here](https://istack.dev59.com/yrkry.webp)