protected override void OnPerformAction() { base.OnPerformAction(); var item = _itemManager.GetItem(); var swipeItemPinedStateControlerProvider = _itemManager.GetAttachedPinnedStateControllerProviderWithItem(); if (swipeItemPinedStateControlerProvider.IsPinnedForAnyState(item)) { swipeItemPinedStateControlerProvider.SetPinnedForAllStates(item, false); _itemManager.NotifyItemChanged(); } }
protected override void OnPerformAction() { base.OnPerformAction(); var stateController = _itemProvider.GetAttachedPinnedStateControllerProviderWithItem().FromSwipeDirection(_swipeDirection); var item = _itemProvider.GetItem(); if (!stateController.IsPinned(item)) { stateController.SetPinnedState(item, true); _itemProvider.NotifyItemChanged(); } }