Example #1
0
        protected override void UpdateView()
        {
            Image icon;

            if (button.Active)
            {
                icon = Command.Icon;
            }
            else
            {
                icon = Command.IconInactive ?? Command.Icon;
            }

            button.Configure(icon, text ?? Command.Text, Command.ToolTipText, null);
            button.Sensitive = Command.CanExecute();
        }