public override ObjectState CalcButtonState(IBaseButton button, IButtonsPanel panel)
        {
            CustomFlyoutPanel flyoutPanel = panel.Owner as CustomFlyoutPanel;

            if (flyoutPanel.HotButtonIndex == panel.Buttons.IndexOf(button))
            {
                return(ObjectState.Hot);
            }
            return(base.CalcButtonState(button, panel));
        }
 public CustomMessageFilter(CustomFlyoutPanel flyoutPanel)
 {
     this.flyoutPanel = flyoutPanel;
 }