File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,9 @@ Use the button with whatever content you wish!
8787
8888
8989You may want to add a style to your app's ` Resources/Styles/Styles.xaml ` to make the defaults more like the normal ` Button `
90+ (remember to add the ` xmlns:mcb="http://schemas.microsoft.com/dotnet/2024/maui/contentbutton" ` namespace to your ` <ResourceDictionary> ` element):
9091``` xml
91- <Style xmlns : mcb = " http://schemas.microsoft.com/dotnet/2024/maui/contentbutton " TargetType =" mcb:ContentButton" >
92+ <Style TargetType =" mcb:ContentButton" >
9293 <Setter Property =" BackgroundColor" Value =" {AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource PrimaryDark}}" />
9394 <Setter Property =" CornerRadius" Value =" 8" />
9495 <Setter Property =" MinimumHeightRequest" Value =" 44" />
You can’t perform that action at this time.
0 commit comments