public void OnUri(Uri uri) { DataContext = new OnlineViewModel(uri.GetQueryParam("Filter"), ShowDetails); SetHideIcon(); InputBindings.AddRange(new[] { new InputBinding(Model.RefreshCommand, new KeyGesture(Key.R, ModifierKeys.Control)), new InputBinding(Model.AddNewServerCommand, new KeyGesture(Key.A, ModifierKeys.Control)) }); InitializeComponent(); ResizingStuff(); }
public void OnUri(Uri uri) { DataContext = new OnlineViewModel(uri.GetQueryParam("Filter"), ShowDetails); SetHideIcon(); InputBindings.AddRange(new[] { new InputBinding(Model.RefreshCommand, new KeyGesture(Key.R, ModifierKeys.Control)), new InputBinding(Model.AddNewServerCommand, new KeyGesture(Key.A, ModifierKeys.Control)) }); InitializeComponent(); ResizingStuff(); var pack = Model.Pack; pack.SubscribeWeak(OnPackPropertyChanged); this.OnActualUnload(() => pack.UnsubscribeWeak(OnPackPropertyChanged)); }
public void OnUri(Uri uri) { DataContext = new OnlineViewModel(uri.GetQueryParam("Filter"), ShowDetails); SetHideIcon(); InputBindings.AddRange(new[] { new InputBinding(Model.AddNewServerCommand, new KeyGesture(Key.A, ModifierKeys.Control)), new InputBinding(new DelegateCommand(() => OnScrollToSelectedButtonClick(null, null)), new KeyGesture(Key.V, ModifierKeys.Control | ModifierKeys.Shift)), new InputBinding(Model.RefreshCommand, new KeyGesture(Key.R, ModifierKeys.Control)), }); InitializeComponent(); ResizingStuff(); var pack = Model.Pack; pack.SubscribeWeak(OnPackPropertyChanged); this.OnActualUnload(() => pack.UnsubscribeWeak(OnPackPropertyChanged)); BigButtonsParent.AddWidthCondition(430).Add(FilteringComboBox); }