【问题标题】:Remove border when hover a button Xamarin form UWP将按钮悬停在 Xamarin 表单 UWP 时删除边框
【发布时间】:2019-04-05 13:19:18
【问题描述】:

如何删除在 Xamarin 表单 UWP 中悬停按钮时显示的矩形边框。我已经参考了以下链接

Remove border of button when hover

我们必须更改边框宽度属性,这也失败了,因为我使用的是圆角按钮,只有在悬停和单击时才会出现边框。

以下屏幕截图将显示场景。

Button - normal state

Button - when hovers

【问题讨论】:

    标签: xamarin button xamarin.forms xamarin.uwp custom-renderer


    【解决方案1】:

    我在发布后几分钟就找到了我自己的问题的答案。

    您可以在 UWP 项目的 App.xaml 中覆盖 ButtonBackgroundPointerOver。

    <Application.Resources>
        <SolidColorBrush x:Key="ButtonBackgroundPointerOver">Transparent</SolidColorBrush>
    </Application.Resources>
    

    我从Hover pointover background找到这个

    【讨论】:

      猜你喜欢
      • 2018-04-12
      • 1970-01-01
      • 2021-05-19
      • 1970-01-01
      • 2019-12-26
      • 1970-01-01
      • 2015-08-21
      • 2019-11-09
      • 2019-06-07
      相关资源
      最近更新 更多