예제 #1
0
        private void ButtonItemClickHandler(object sender, RoutedEventArgs e)
        {
            var data = (sender as FrameworkElement).DataContext as DeckInformation;

            if (data == null)
            {
                return;
            }
            DeckItemClickEvent?.Invoke(data);
        }
예제 #2
0
        private void ListViewItemClickHandler(object sender, ItemClickEventArgs e)
        {
            var item = e.ClickedItem as DeckInformation;

            if (item == null)
            {
                throw new Exception("Wrong data type");
            }

            if (!IsDragAndDropEnable)
            {
                DeckItemClickEvent?.Invoke(item);
            }
        }