【发布时间】:2015-11-22 23:38:52
【问题描述】:
我有以下 UWP XAML:
<Button Content="Scan"
Command="{Binding CommandScan}" ToolTipService.ToolTip="Scan"
Style="{StaticResource ButtonIconStyle}">
<Button.Template>
<ControlTemplate TargetType="Button">
<resources:ScanIcon />
</ControlTemplate>
</Button.Template>
</Button>
ScanIcon 是一个包含矢量图像的用户控件。似乎正在发生的事情是图标掩盖了可点击的按钮区域 - 也就是说,我只能点击图标的绘制区域,按钮的背景(虽然仍在按钮的边框内)不可点击。
所以,我的问题是:是什么导致了这种行为,我该如何覆盖它?
【问题讨论】:
标签: xaml windows-10 uwp vector-graphics