2025年7月3日
摘要: 基于自己写的WpfButton,ButtonWithShape.xaml代码如下。 <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" x 阅读全文
posted @ 2025-07-03 09:00 dalgleish 阅读(16) 评论(0) 推荐(0)
摘要: 由于C# Maui是跨平台,所以按钮是没有写PointerOver这个样式的。本例子通过两种方法展示Button的Style修改。 方法一,使用xaml。这个方法,可以看我前面的教程,在App.xaml中添加MyStyles.xaml,然后自定义的按钮样式就可以被所有项目使用了。 <!--Butto 阅读全文
posted @ 2025-07-03 07:47 dalgleish 阅读(11) 评论(0) 推荐(0)