private ShortcutViewModel CreateViewModel(Shortcut shortcut)
        {
            var vm = new ShortcutViewModel(shortcut);

            vm.PropertyChanged += (sender, e) =>
            {
                if (e.PropertyName == nameof(ShortcutViewModel.HasTile))
                {
                    ShortcutsView.Refresh();
                }
            };

            return(vm);
        }
        private bool ApplyFilter(object item)
        {
            ShortcutViewModel shortcut = item as ShortcutViewModel;

            if (shortcut != null)
            {
                switch (Filter)
                {
                case ShortcutFilter.HasTile:
                    return(shortcut.HasTile);

                case ShortcutFilter.MissingTile:
                    return(!shortcut.HasTile);

                case ShortcutFilter.All:
                default:
                    return(true);
                }
            }

            return(false);
        }
 private void ShowFlyout(ShortcutViewModel vm)
 {
     CurrentShortcut = vm;
     IsFlyoutOpen    = true;
 }