Exemplo n.º 1
0
        private void ShowVideo(VideoViewModel video)
        {
            if (!ShowCommand.CanExecute(video))
            {
                return;
            }

            _navigationService.NavigateTo(ViewModelLocator.VIDEO_DETAILS, video);
        }
Exemplo n.º 2
0
        private void ToolTip_Opened(object sender, RoutedEventArgs e)
        {
            if (ToolTipOnDemand)
            {
                var toolTip = sender as ToolTip;
                toolTip.Visibility = toolTip.ActualWidth < AssociatedObject.ActualWidth ? Visibility.Hidden : Visibility.Visible;
                //toolTip.MinWidth = AssociatedObject.ActualWidth;
                //toolTip.MinHeight = AssociatedObject.ActualHeight;
            }

            if (ShowCommand != null)
            {
                if (ShowCommand.CanExecute(AssociatedObject?.DataContext))
                {
                    ShowCommand.Execute(AssociatedObject?.DataContext);
                }
            }
        }