[SOLVED] RibbonBarItemButton do not change .Pushed state visually correctly.

Answered
0
0

Change from Pushed = true to Pushed = false leaves button visually in pushed state. button.Update() does not help, only reload page in browser.

sample code:

ribbon = new RibbonBar();
Controls.Add(ribbon);
var page = new RibbonBarPage();
page.Text = "PushTest";
var grp = new RibbonBarGroup();
grp.Text = "push test group";
var button = new RibbonBarItemButton();
button.Text = "push me";
button.Click += (sender, args) =>
{
button.Pushed = !button.Pushed;
button.Text = button.Pushed ? "pushed" : "released";
};
ribbon.Pages.Add(page);
page.Groups.Add(grp);
grp.Items.Add(button);

  • You must to post comments
Best Answer
0
1

Hi Pavel,

thanks. It turned out to be a problem with the theme mixin.
It´s fixed in GitHub, please update the ribbon bar extension from there.

Best regards
Frank

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.