Skip to content

Click/Press not called on windows #11

@poochie89

Description

@poochie89

Working fine on Android and iOS,
Clicking doesnt change BackgroundColor nor firing events

Am trying the basic from README

    <stateButton:StateButton Padding="20,10"  Pressed="StateButton_Clicked_1" Clicked="StateButton_Clicked_1" BackgroundColor="Red">
                <stateButton:StateButton.StrokeShape>
                    <RoundRectangle CornerRadius="10" />
                </stateButton:StateButton.StrokeShape>
                <stateButton:StateButton.Triggers>
                    <Trigger TargetType="stateButton:StateButton" Property="State" Value="Pressed">
                        <Setter Property="BackgroundColor" Value="Green" />
                    </Trigger>
                </stateButton:StateButton.Triggers>
    
                <Label Text="Test" TextColor="White">
                    <Label.Triggers>
                        <DataTrigger Binding="{Binding Source={RelativeSource AncestorType={x:Type stateButton:StateButton}}, Path=State}"
                            TargetType="Label"
                            Value="Pressed">
                            <Setter Property="TextColor" Value="Blue" />
                        </DataTrigger>
                    </Label.Triggers>
                </Label>
        </stateButton:StateButton>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions