[Support] SfButton doesn't handle VisualStateManager
I'm migrating the Xamarin SfButton to MAUI but it looks like the control doesn't support VisualStateManager. Will this feature be included in future releases?
<Style x:Key="SfButtonStyle" TargetType="buttons:SfButton">
<Setter Property="HeightRequest" Value="55" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="Stroke" Value="Transparent" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="Background" Value="Red" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Normal">
<VisualState.Setters>
<Setter Property="Background" Value="Blue" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
...
<buttons:SfButton Style="{StaticResource SfButtonStyle}" Text="Press!" IsEnabled="False">
Hi Junior,
After reviewing the reported query, we were unable to reproduce the issue on our end. We have attached the sample and output video for your reference. To better understand the root cause and assist with resolving the issue, it would be helpful if you could provide more detailed information, including a sample demonstrating the issue with replication steps. Please let us know if you have any other queries.
Furthermore, could you please specify the platforms on which you are experiencing this issue? Additionally, could you let us know the version of the Syncfusion NuGet package you are using in your project?
Regards,
Arunachalam K
Attachment: Forum186344Button_42bd5b1f.zip
Hi
Arunachalam,
I think it's related to the version. I was using v23.1.44 and the Backgound didn't change when I bound a Command.
Now, I tested v24.1.47 and it's working as I expected.
Hi Junior Saravia,
Thank you for the update.
We are glad to know that the reported problem has been resolved. Please let us know if you require any further assistance on this, we will be happy to assist you.
Regards,
Preethi R
- 3 Replies
- 3 Participants
-
JS Junior Saravia
- Jan 19, 2024 08:58 PM UTC
- Jan 24, 2024 05:12 AM UTC