Be a Toolbar ToggleButton picture switch.
Private void TBMain_ButtonClick (Object Sender, ToolbarButtonclicKeventargs E)
{
Switch (E.Button.Text)
{
.
.
.
DEFAULT:
{
IF (E.Button.pushed)
E.Button.ImageIndex = 5;
Else
E.Button.ImageIndex = 6;
Break;
}
}
}
I started thinking, if the button didn't press it, I pressed it, and I wrote E.Button.pushed =! E.Button.pushed, and suddenly found that the button is not moving. . . . . . Do I press the wrong? Change E.Button.pushed = E.Button.pushed, haha, changed it, but how to think that the program is not right. . . . . . Finally, simply remove it: (... stupid