/// <summary> /// Initializes a new instance of the <see cref="ChannelbarView" /> class. /// </summary> /// <param name="vm"> /// The vm. /// </param> public ChannelbarView(ChannelbarViewModel vm) { InitializeComponent(); DataContext = vm; vm.OnJumpToNotifications += (s, e) => { if (NotificationButton.IsChecked == false) NotificationButton.IsChecked = true; }; }
/// <summary> /// Initializes a new instance of the <see cref="ChannelbarView" /> class. /// </summary> /// <param name="vm"> /// The vm. /// </param> public ChannelbarView(ChannelbarViewModel vm) { InitializeComponent(); DataContext = vm; vm.OnJumpToNotifications += (s, e) => { if (NotificationButton.IsChecked == false) { NotificationButton.IsChecked = true; } }; vm.OnJumpToSearch += (s, e) => { if (ManageListsButton.IsChecked == false) { ManageListsButton.IsChecked = true; } }; }