private void MediaHorizontalListItem_OnTap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            ProfileMediaViewModelFacade         viewModel = this.ViewModel;
            Action <MediaListItemViewModelBase> action1;

            if (viewModel == null)
            {
                action1 = null;
            }
            else
            {
                IMediaHorizontalItemsViewModel horizontalItemsViewModel = viewModel.MediaHorizontalItemsViewModel;
                action1 = horizontalItemsViewModel != null ? horizontalItemsViewModel.ItemTapAction :  null;
            }
            Action <MediaListItemViewModelBase> action2 = action1;

            if (action2 == null)
            {
                return;
            }
            MediaListItemViewModelBase dataContext = ((FrameworkElement)sender).DataContext as MediaListItemViewModelBase;

            if (dataContext == null)
            {
                return;
            }
            action2(dataContext);
        }
        public void Reload()
        {
            ProfileMediaViewModelFacade viewModel = this.ViewModel;

            if (viewModel == null)
            {
                return;
            }
            IMediaHorizontalItemsViewModel horizontalItemsViewModel = viewModel.MediaHorizontalItemsViewModel;

            if (horizontalItemsViewModel == null)
            {
                return;
            }
            horizontalItemsViewModel.Reload();
        }
        private void MediaItemsList_OnLink(object sender, LinkUnlinkEventArgs e)
        {
            ProfileMediaViewModelFacade viewModel = this.ViewModel;

            if (viewModel == null)
            {
                return;
            }
            IMediaHorizontalItemsViewModel horizontalItemsViewModel = viewModel.MediaHorizontalItemsViewModel;

            if (horizontalItemsViewModel == null)
            {
                return;
            }
            object dataContext = ((FrameworkElement)e.ContentPresenter).DataContext;

            horizontalItemsViewModel.LoadMoreItems(dataContext);
        }
        private void MediaVerticalItemsHeader_OnTap(object sender, RoutedEventArgs routedEventArgs)
        {
            ProfileMediaViewModelFacade viewModel = this.ViewModel;

            if (viewModel == null)
            {
                return;
            }
            IMediaVerticalItemsViewModel verticalItemsViewModel = viewModel.MediaVerticalItemsViewModel;

            if (verticalItemsViewModel == null)
            {
                return;
            }
            Action headerTapAction = verticalItemsViewModel.HeaderTapAction;

            if (headerTapAction == null)
            {
                return;
            }
            headerTapAction();
        }