Example #1
0
 private void OnContextChanged()
 {
     vm = DataContext as GenericSearchSettingsModel;
     if (vm != null)
     {
         shortcuts = new ShortcutManager(Entry, vm);
     }
 }
Example #2
0
        private void OnContextChanged()
        {
            if (vm != null)
            {
                vm.PropertyChanged -= PropertyChanged;
            }

            vm = DataContext as ChannelViewModelBase;
            if (vm == null)
            {
                return;
            }

            shortcuts           = new ShortcutManager(Entry, vm);
            vm.PropertyChanged += PropertyChanged;
        }
Example #3
0
 private void OnContextChanged()
 {
     vm = DataContext as GenericSearchSettingsModel;
     if (vm != null)
         shortcuts = new ShortcutManager(Entry, vm);
 }
        private void OnContextChanged()
        {
            if (vm != null)
                vm.PropertyChanged -= PropertyChanged;

            vm = DataContext as ChannelViewModelBase;
            if (vm == null) return;

            shortcuts = new ShortcutManager(Entry, vm);
            vm.PropertyChanged += PropertyChanged;
        }