Skip to content
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

Switch inside ListView #26

Closed
acaliaro opened this issue Jun 10, 2019 · 1 comment
Closed

Switch inside ListView #26

acaliaro opened this issue Jun 10, 2019 · 1 comment

Comments

@acaliaro
Copy link

Hi @davidbritch
I have a Switch inside a ListView.

I would like to use EventHandlerBehavior with Toggled event, but I think I miss something:

                    <Switch Grid.Row="2"
                        Grid.Column="1"
                        WidthRequest="100"
                        HorizontalOptions="End"
                        VerticalOptions="End"                               
                        OnColor="{StaticResource Prada.ButtonForeground}"
                        IsToggled="{Binding IsOk, Mode=TwoWay}" >
                        <Switch.Behaviors>
                            <behaviors:EventHandlerBehavior EventName="Toggled">
                                <behaviors:InvokeCommandAction Command="{Binding ToggledCommand}"/>
                            </behaviors:EventHandlerBehavior>
                        </Switch.Behaviors>
                    </Switch>

can you help me?
Thanks

@acaliaro
Copy link
Author

duplicate in #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant