如何在此分配 Click 事件?当鼠标单击此窗口时,我想做一些事情。它在 Window 和 Canvas 中都没有 Click 属性
<Window Loaded="Window_Loaded"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="InClassApp.UI.TextNotify"
x:Name="Window"
Title="TextNotify"
Width="400" Height="100"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
ShowInTaskbar="False">
<Border CornerRadius="5">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFBAFDFF" Offset="0"/>
<GradientStop Color="White" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
<Canvas x:Name="LayoutRoot" >
.......
</Canvas>
</Border>