WPF简单通知窗口
在这里记录一下写通知窗口的过程,自己以后可以有所借鉴,表格布局用的不是很熟,如有问题欢迎留言。
页面布局
<Window x:Class="Apps.NotificationWindow"
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:WpfAIOApplication.Pages.Common"
mc:Ignorable="d"
Title="NorificationWindow" Height="60" Width="260" AllowsTransparency="True"
WindowStyle="None" WindowStartupLocation="Manual" Loaded="Window_Loaded" Background="{x:Null}">
<Grid Opacity="1" Background="Transparent" >
<Border Background="White" CornerRadius="10,10,10,10" >
<Grid x:Name="mGrid">
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>