- Home
- Forum
- Xamarin.Forms
- Drag and drop stop working when await Navigation.PopAsync(true);
Drag and drop stop working when await Navigation.PopAsync(true);
Xamarin.Forms 5.0.0.2083
version 19.2.0.60
1-in the ItemTapped event i open a new page, (await Navigation.PushAsync(new ItemDetailPage(new ItemDetailViewModel(item)));) and when I go back I can't drag a card.
<kanban:SfKanban x:Name="SfKbanTec" MaximumColumnWidth="650" AutoGenerateColumns="False" ItemsSource="{Binding CardsTecOriginal}"
HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" ItemTapped="SfKbanTec_ItemTapped" >
<kanban:SfKanban.CardTemplate >
<DataTemplate>
<Frame BorderColor="Black" BackgroundColor="White" Padding="5,5,5,5" HeightRequest="150" >
<Grid HorizontalOptions="FillAndExpand" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="50"/>
</Grid.ColumnDefinitions>
<StackLayout Grid.Column="0" HorizontalOptions="FillAndExpand" Orientation="Vertical" >
<Label Text="Titulo" FontSize="14" TextColor="#2196F3" HorizontalOptions="FillAndExpand" LineBreakMode="TailTruncation" FontAttributes="Bold" />
<Label Text="{Binding DataDoc}" FontSize="12" TextColor="#2196F3" LineBreakMode="WordWrap" ></Label>
<Label Text="{Binding Description}" HeightRequest="68" FontSize="12" TextColor="#2196F3" LineBreakMode="WordWrap" ></Label>
<segmentedcontrol:SfChipGroup HeightRequest="20" ChipTextSize="10" ItemsSource="{Binding Tags}" Type="Filter" IsEnabled="False" VerticalOptions="End" />
</StackLayout>
<sfAvatarView:SfAvatarView Grid.Column="1" VerticalOptions="Start" InitialsType="DoubleCharacter" AvatarName="{Binding Geral0}" InitialsColor="Black" BorderColor="LightSteelBlue" CornerRadius="25" BackgroundColor="LightCyan" WidthRequest="50" HeightRequest="50"/>
</Grid>
</Frame>
</DataTemplate>
</kanban:SfKanban.CardTemplate>
</kanban:SfKanban>
2-
i tried to use sftabview with 3 views, i had 2 contentview with skkanban with different columns and DataTemplate.
when I open the second tab with contentview the first contentview of the first tab is formatted the same as the DataTemplate of the 2 contentview
private void TabView_TabItemTapped(object sender, Syncfusion.XForms.TabView.TabItemTappedEventArgs e)
{ var tabIndex = TabView.Items.IndexOf(e.TabItem);
if (TabView.Items[tabIndex].Content == null)
{ TabView.Items[tabIndex].Content = GetItemContent(tabIndex); }
}
Attachment: Video_611640af.zip
Thanks for the update.
On further analysis we have confirmed that the reported problem “SfKanban card does drag and drop after push and pop the page in UWP” as issue. Also, we have fixed the reported issue and we have generated the patch with fix for the reported issue. Please find the patch details from the below link.
|
Please refer below steps to remove the cache:
Note: The images shows as SfChart, please refer SfKanban instead of SfChart for your scenario
Step 1: Uninstall the SfKanban package in your application.
Step 2: Close your application.
Step 3: Delete bin, obj in your application location.
Step 4: Remove the SfKanban nuget under the .nuget folder as per the following screenshot:
Step 5: Extract the custom nuget and now your custom nuget look like this.
Step 6: Move the Syncfusion.SfKanban.UWP nuget inside the Xamarin folder as per the following screenshot.
Note: If the Xamarin structure does not look like above screenshot means, custom nuget will not properly works for Xamarin.Forms UWP platform.
Step 7: Goto the package resource setting and a new source named as CustomNuget.
Step 8: Select the location where you have the custom nuget.
Step 9: Select the CustomNuget in Package source as per the following screenshot:
Step 10: Now you can see the SfKanban nugets in browse section and you can install the SfChart custom nuget.
For more details, please refer below kb to clear the cache:
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Also, please confirm the fix for the issue at your end, based on that we will be included in our official release. |
thanks, it works,
I changed my mind and I'm not going to use tabview but about point 2 I've attached an example with the problem
page 1 set frame red
page 2 set frame black
but when running they are both black
maybe could help someone else
Attachment: TabviewSample167658398_kanban_2e61c078.zip
Regards,
Still we are validating this to find the exact root cause of the problem “Kanban card template is not updated properly when inside SfTabView” and we will update you with complete details on 23rd September 2021. We appreciate your patience until then.
Regards,
|
Please clear the NuGet cache, before using the latest one.
|
- 11 Replies
- 3 Participants
- Marked answer
-
AN Antonio
- Sep 12, 2021 03:58 PM UTC
- Nov 12, 2021 03:52 PM UTC