Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 24cde8e

Browse files
authored
[Tizen] Fix SwipeView Command issue (#13521)
1 parent c99c2c0 commit 24cde8e

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Xamarin.Forms.Platform.Tizen/Renderers/SwipeViewRenderer.cs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -415,17 +415,10 @@ static void ExecuteItems(SwipeItems items)
415415
{
416416
foreach (var item in items)
417417
{
418-
var cmd = item.Command;
419-
object parameter = item.CommandParameter;
420-
421-
if (cmd != null && cmd.CanExecute(parameter))
422-
cmd.Execute(parameter);
423-
424-
if (item is SwipeItem swipeItem)
425-
swipeItem.OnInvoked();
426-
427-
if (item is SwipeItemView customSwipeItem)
428-
customSwipeItem.OnInvoked();
418+
if (item is SwipeItem swipeItem && swipeItem.IsEnabled)
419+
item.OnInvoked();
420+
else if (item is SwipeItemView customSwipeItem && customSwipeItem.IsEnabled)
421+
item.OnInvoked();
429422
}
430423
}
431424

0 commit comments

Comments
 (0)