I have noticed a strange behaviour with togglebuttons when using the default theme, which seems to not occur in the other themes I have tested.
When the CommandBar toggle buttons are activated using a mouse the pressed state has the gradient, when I set them programatically, or when I change to another theme in code and then change back to Default theme the buttons are still depressed but they are now a solid shade of orange and have lost the gradient. This behaviour doesn't seem to occur on any of the other themes.
In the image I have set 5 of the 6 buttons to toggled, taken a pic1 in black theme, changed to default theme where it loses the shading pic2, then used the mouse to togggle off and on two buttons which are now again shaded pic3.
Best Regards,
Kurt
When the CommandBar toggle buttons are activated using a mouse the pressed state has the gradient, when I set them programatically, or when I change to another theme in code and then change back to Default theme the buttons are still depressed but they are now a solid shade of orange and have lost the gradient. This behaviour doesn't seem to occur on any of the other themes.
In the image I have set 5 of the 6 buttons to toggled, taken a pic1 in black theme, changed to default theme where it loses the shading pic2, then used the mouse to togggle off and on two buttons which are now again shaded pic3.
Best Regards,
Kurt