Hi,
When I hoover the mouse over a item in the main menu, a blue effect appears over it, but when I click it, that effect remains in the item, and it looks pretty bad.
Why that happen? how can I avoid it?
Cheers.
And also when you mess with the IsEnabled property
It happens also when you click on the item and you open something on top, for example if the menu is contained in a BusyIndicator control and the xammenuitem click handler set the IsBusy property, then the item remains clicked too. is there a way or workaround to refresh the status of that item?
That's great, looking forward for the new SR.
Kind regards.
I was able to reproduce your issue by collapsing the item's visibility on click. The reason this is happening is because the "Highlighted" state is controlled through item's MouseEnter and MouseLeave events. When you collapse the visibility of the item with the mouse cursor over it, the MouseLeave event never fires and the Item remain in "Highlighted" state.
A possible workaround is to set Item's width to '0' instead of collapsing its visibility. You could set its width to double.NaN later to make it 'visible' again.
We will try to fix this issue for the next Service Release.
Hope that helps,