Open igormancos opened 4 years ago
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; }
I found issue - is related to RefreshView.
When add ListView with xe:Commands.Tap not working when this list is inside RefreshView
Hi,
The Binding inside cell template of ListView working nice, but when I added the grouping the binding stop working :(