我对以下代码段中的aTrigger
和属性有疑问IsMouseOver
<Border Name="PART_Logo" Background="{DynamicResource Accent}" Width="36" Height="36" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,76,0">
<Border.InputBindings>
<MouseBinding Command="presentation:Commands.LogoClickCommand" Gesture="LeftClick" />
</Border.InputBindings>
<Border.Style>
<Style TargetType="Border">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BitmapEffect">
<Setter.Value>
<BlurBitmapEffect Radius="3" KernelType="Gaussian"/>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</Border.Style>
<Image Source="{TemplateBinding Logo}" Stretch="UniformToFill">
<Image.Style>
<Style TargetType="Image">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BitmapEffect">
<Setter.Value>
<BlurBitmapEffect Radius="3" KernelType="Gaussian"/>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</Image.Style>
<Image.InputBindings>
<MouseBinding Command="presentation:Commands.LogoClickCommand" Gesture="LeftClick" />
</Image.InputBindings>
</Image>
</Border>
它仅适用于下半部分,Border
这是两个显示行为的图像: