Xamarin.forms 背景色上鼠标上的imagebutton
如何更改鼠标上方图像按钮的颜色Xamarin.forms 背景色上鼠标上的imagebutton,xamarin.forms,mouseover,imagebutton,Xamarin.forms,Mouseover,Imagebutton,如何更改鼠标上方图像按钮的颜色 <ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="DMInfoOrganizer.CheckBox"> <ContentView.Content> <ImageBu
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="DMInfoOrganizer.CheckBox">
<ContentView.Content>
<ImageButton x:Name="BtnCheck" Clicked="BtnCheck_Clicked"></ImageButton>
</ContentView.Content>
</ContentView>
我通过LucasZhang MSFT建议的链接解决了问题
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="Transparent" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
</Application.Resources>
非常感谢您的意思是在单击时更改按钮的颜色吗?不,当鼠标移到按钮上时,这会更改背景颜色。我不想要这个零钱。是否可以禁用此功能或为鼠标悬停事件设置颜色?对不起,我的英语不好。鼠标是什么意思?android和iOS上没有鼠标。你在uwp上工作过吗?@LucasZhang MSFT,对不起,你有理由,是的,在uwp上