Esempio n. 1
0
        /// <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;
                };
        }
Esempio n. 2
0
        /// <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;
                }
            };
        }