-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in changing backgroudcolor in the code #65
Comments
There is something funky happening with the BackgroundColor property. Setting it in line in xaml works fine, but trying to set it in a style doesn't work. Interestingly, intellisense shows two properties called BackgroundColor. Assigning it in line shows them one way round, and works fine. Assigning it in a style shows them the other way round, and has no effect. This is with FlexButton 0.8, Xamarin.Forms shared project, intellisense provided by MFractor. |
Fixed in version 0.9.0: https://www.nuget.org/packages/Forms.Controls.FlexButton/0.9.0 |
In Thanks, |
Describe the bug
It seems there is a bug in changing the flex button backgroundcolor from codes. I have two flex buttons in the content page. I want to change the buttons' backgroundcolor when clicking the buttons.
I use the following codes:
private void button1_OnClicked(object sender, EventArgs e)
{
button1.BackgroundColor = Color.Blue;
button2.BackgroundColor = Color.White;
}
private void button2_OnClicked(object sender, EventArgs e)
{
button1.BackgroundColor = Color.White;
button2.BackgroundColor = Color.Blue;
}
but after buttons change to blue, they are not able to change to white
Expected behavior
click button1: button1 is blue, button2 is white.
click button2: button1 is white, button2 is blue.
I am using FlexButton 0.8.0, Xamarin.Forms 3.1, PCL
anyone met same problem?
The text was updated successfully, but these errors were encountered: