Skip to content

Image stays dark after pressed #72

@SmatchyLaPaglia

Description

@SmatchyLaPaglia

Describe the bug
When an image is used, and the button is pressed, the image darkens to show the button is being pressed, but the image stays darkened after the press is lifted.

To Reproduce
Steps to reproduce the behavior:
Using Visual Studio for Mac, Community edition, 7.8.3 build 2.
Can be seen using this simple Forms code:

XAML:

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns ="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Tests.TestFlexButtonIcon"
             xmlns:flex          ="clr-namespace:Flex.Controls;assembly=Flex">
            <flex:FlexButton                              
        x:Name="testButton"
        BackgroundColor="Green"
                             Padding="0"
                             WidthRequest            ="70"
                             HeightRequest           ="70"
                             HorizontalOptions       ="Center"
                             VerticalOptions         ="Center"
                             />
</ContentPage>

Code-behind:

using System.Reflection;
using Xamarin.Forms;

namespace Tests
{
    public partial class TestFlexButtonIcon : ContentPage
    {
        public TestFlexButtonIcon()
        {
            InitializeComponent();
            testButton.Icon =  ImageSource.FromResource("Test.flowerTest.jpg", typeof(TestFlexButtonIcon).GetTypeInfo().Assembly);
        }
    }
}

Expected behavior
The image should return to its normal state after the press on the button ends.

Please complete the following information:

  • Which version of the FlexButton do you use?
    0.9.1

  • Which version of Xamarin.Forms do you use?
    3.6.0.264807

  • Which OS are you talking about?
    Mac OS development platform, running on iOS simulator (as well as on iPhone 6S physical device)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions