public LayoutDropDown(ActionDispatcher dispatcher, WebDropDownAction action, WebIconSize iconSize) { InitializeComponent(); _iconSize = iconSize; _actionDispatcher = dispatcher; _actionItem = action; _popup = new LayoutPopup(dispatcher, action.DropDownActions).AsSingleton(); dispatcher.Register(_actionItem.Identifier, this); SetIcon(); ToolTipService.SetToolTip(LayoutDropDownButton, _actionItem.ToolTip); ButtonComponent.Click += OnDropClick; LayoutDropDownButton.MouseEnter += ButtonComponent_MouseEnter; LayoutDropDownButton.MouseLeave += ButtonComponent_MouseLeave; Visibility = _actionItem.DesiredVisiblility; ButtonComponent.IsEnabled = _actionItem.Enabled; IndicateChecked(false); //This button doesn't have a checked state. }