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

Bind Commands.Tap inside ListView in RefreshView #49

Open
igormancos opened this issue Jun 25, 2020 · 1 comment
Open

Bind Commands.Tap inside ListView in RefreshView #49

igormancos opened this issue Jun 25, 2020 · 1 comment

Comments

@igormancos
Copy link

Hi,

The Binding inside cell template of ListView working nice, but when I added the grouping the binding stop working :(

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:xe="clr-namespace:XamEffects;assembly=XamEffects"
             mc:Ignorable="d"
             x:Name="page"
              ....
<ListView x:Name="CashList"
                          IsGroupingEnabled="True" 
                          ItemSelected="CashList_ItemSelected"
                          GroupDisplayBinding="{Binding GroupKey}">
<ListView.ItemTemplate>
                            <DataTemplate>
                                <ViewCell>
                                    <Frame Padding="0" Margin="16,4" VerticalOptions="Center">
                                        <StackLayout 
                                            xe:TouchEffect.Color="#CCC"
                                            xe:Commands.Tap="{Binding Source={x:Reference page}, Path=TapCommand}"
                                            xe:Commands.TapParameter="{Binding name}">
                                            <StackLayout Orientation="Horizontal" Margin="10">
                                                <Label Text="{Binding name}" HorizontalOptions="Start" TextColor="Black"/>
                                                <Label Text="{Binding valuta}" HorizontalOptions="Start" TextColor="Black"/>
                                            </StackLayout>
                                        </StackLayout>
                                    </Frame>
                                </ViewCell>
                            </DataTemplate>
                    </ListView.ItemTemplate>
 public partial class MoneyPage : ContentPage
    {
        public ICommand TapCommand { get { return new Command<string>((x) => Go_Tapped(x)); } }
private async void Go_Tapped(string data)
        {
            MasterDetailPage masterDetail = (MasterDetailPage)Application.Current.MainPage;
        }
@igormancos igormancos changed the title Bind Commands.Tap inside ListView with groups Bind Commands.Tap inside ListView in RefreshView Jun 25, 2020
@igormancos
Copy link
Author

I found issue - is related to RefreshView.

When add ListView with xe:Commands.Tap not working when this list is inside RefreshView

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