protected override void OnOwnerChanged(EventArgs e)
		{
			base.OnOwnerChanged(e);

			// grab the owner so we can manipulate the buttons later
			splitButton = (ToolBarSplitButton)Owner;
			
			// wire up our event handlers
			NavigationService.HistoryChanged += NavHistoryChanged;
			
			// trigger state change to match initial state
			NavHistoryChanged(this, EventArgs.Empty);
		}
Пример #2
0
        protected override void OnOwnerChanged(EventArgs e)
        {
            base.OnOwnerChanged(e);

            // grab the owner so we can manipulate the buttons later
            splitButton = (ToolBarSplitButton)Owner;

            // wire up our event handlers
            NavigationService.HistoryChanged += NavHistoryChanged;

            // trigger state change to match initial state
            NavHistoryChanged(this, EventArgs.Empty);
        }