Context Menu - Menu Item Alignment Wpf?

I'm definitely no WPF expert but I can reproduce your situation.

Up vote 1 down vote favorite share g+ share fb share tw.

I have created a context menu and added menuitems to it like below, Here I have specified width too. The problem is if I mouse over on any of the menu item the item moves a step left? Why is it so?

Wpf link|improve this question edited Nov 11 '10 at 12:14itsmatt13.8k12872 asked Nov 11 '10 at 11:35user50443461.

I'm definitely no WPF expert but I can reproduce your situation. If I remove the Width specifier, the behavior is not seen. Something like this: I believe the situation arises based on the width you've specified for the contextmenu and the widths of the items you've put in the context menu.

If I insert shorter strings, the behavior doesn't occur. Likewise, if I increase the specified Width to 200, I don't see the behavior with the given strings.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions