Window属性设置
<Window x:Class="MainInterface.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
WindowStyle="None"
Background="{x:Null}"
AllowsTransparency="True"
Title="iHealth"
Height="594"
MinHeight="400"
Width="288"
MaxWidth="500">
<Grid>
<Border Background="Orange"/>
</Grid>
</Window>
借助 HwndSource 添加 Hook,截取 Windows 消息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;