Welcome to the .NET MAUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the .NET MAUI, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

I can not set button background through a StaticResource all other values are set except for the background see following code:

<buttons:SfButton

     Style="{StaticResource

ImageButtonStyle
}"

  />

Resourcefile:

<ResourceDictionary>

    <Style TargetType="buttons:SfButton" x:Key="ImageButtonStyle">

        <Setter Property="CornerRadius" Value="8" />

        <Setter Property="Background" Value="#FFB838" />

        <Setter Property="ShowIcon" Value="True" />

        <Setter Property="ImageSource" Value="PathToImage" />

        <Setter Property="ImageAlignment" Value="Default" />

    </Style>

</ResourceDictionary>