0

如何将一个简单的窗口捕捉到屏幕(桌面)边缘?

使用名为 Huddled 的库找到了这篇文章,但我无法使用它进行编译。有什么问题吗?

<Window x:Class="CMD_Bar.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:huddled="http://schemas.huddledmasses.org/wpf"
    Title="CMD" Height="500" Width="500" Topmost="True" WindowStyle="None" AllowsTransparency="True" FontSize="12">

<huddled:Native.Behaviors>
    <huddled:SnapToBehavior SnapDistance="20" />
</huddled:Native.Behaviors>

<Grid>       
    <Label Content="Something" />
</Grid>

编辑: 这是错误消息:

XML 命名空间“http://schemas.huddledmasses.org/wpf”中不存在标记“Native.Behaviors”。线 9 位置 6

找不到类型“huddled:SnapToBehavior”。确认您没有丢失程序集引用并且所有引用的程序集都已构建。D:\CMD-Bar\CMD-Bar\MainWindow.xaml

4

0 回答 0