CapgeminiSurface.FavouriteStack.RemoveInstancePropertyObject C# (CSharp) Method

RemoveInstancePropertyObject() public method

public RemoveInstancePropertyObject ( object sender ) : void
sender object
return void
        public void RemoveInstancePropertyObject(object sender)
        {
            var item = sender as ContentItem;
            if (item != null)
            {
                var stackSource = _collection.Source as List<ContentItem>;
                if (stackSource != null)
                {
                    stackSource.Remove(item);
                    favouriteStackContent.ItemsSource = _collection.View;
                }
            }
        }