You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my code-behind file I am setting up a binding to the button's style like this (using ReactiveUI):
this.OneWayBind(ViewModel, x => x.IsGpsOn, x => x.GpsButton.Style, BoolToOnOffCircleButtonStyle);
The BoolToOnOffCircleButtonStyle returns either the DashboardCircleButtonOn or DashboardCircleButtonOff style, depending on the value of the property it is bound to.
Every property on the CircleButton is set correctly, except for the BackgroundColor (the button's background is white).
Expected behavior
The button's background should have the color which is defined in the style that is bound to it.
If I change the type of the button (and the targetType of the style accordingly) to a regular button, everything works as expected.
Please complete the following information:
Which version of the ButtonCircle do you use: 2.0.3
Which version of Xamarin.Forms do you use: 3.2.0.871581 (ReactiveUI: 9.0.1)
Which OS are you talking about: Multi-Platform solution testing UWP project
The text was updated successfully, but these errors were encountered:
Describe the bug
The BackgroundColor of the CircleButton does not get applied to the button when the button's still is bound to a derived style.
To Reproduce
I have the following style defined in my Application ResourceDictionary:
In my ViewModel XAML, I have defined a CircleButton like this:
In my code-behind file I am setting up a binding to the button's style like this (using ReactiveUI):
The
BoolToOnOffCircleButtonStyle
returns either theDashboardCircleButtonOn
orDashboardCircleButtonOff
style, depending on the value of the property it is bound to.Every property on the CircleButton is set correctly, except for the BackgroundColor (the button's background is white).
Expected behavior
The button's background should have the color which is defined in the style that is bound to it.
If I change the type of the button (and the targetType of the style accordingly) to a regular button, everything works as expected.
Please complete the following information:
The text was updated successfully, but these errors were encountered: