Skip to content

Commit 1a76392

Browse files
authored
Update README.md
1 parent 6126ae6 commit 1a76392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ Use the button with whatever content you wish!
8787

8888

8989
You 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"/>

0 commit comments

Comments
 (0)