Forum Xamarin Xamarin.Forms

Binding Button

jon78jon78 Member ✭✭✭

I want display info about solvency of customer in a listview of customers with MVVM

Button works but i would display only when customer.IsLocked is true instead is always visible

What is my mistake?

<ListView x:Name="customersListView"
                 ItemsSource="{Binding Customers}">
                            <Grid x:Name="customer"                                           
                                <Button Text="Solvency"
                                        BindingContext="{Binding Source={x:Reference customersListView}, Path=BindingContext}"
                                        Command="{Binding SolvencyInfoCommand}"
                                        CommandParameter="{Binding Source={x:Reference customer}, Path=BindingContext}"
                                      **  IsVisible="{Binding customer.IsLocked}"  **                                    

Every way i try i cant figure out


Best Answer


  • jon78jon78 Member ✭✭✭
    edited October 19

    tks for your timely reply
    It works and simplify the code

    tks again

Sign In or Register to comment.