1

I'm very confused about this - as I mentioned in the title everything is okay when I build, but when I'm developing the code the fact that what is appearing in Visual Studio is different to what I get when I build is unsettling. Maybe someone can see what is going on?

Basically, I am unable to define widths for menu items or the header text disappears. It works fine when building though. I've included some screenshots and my code to make this easier to understand.

Thanks

With no width defined, the alignment is strange:

strange alignment

If I define a width, the text disappears!

text disappears!

Yet if I do define a width, while the text doesn't appear in Visual Studio when I run the application it does perfectly!

works perfectly

If anyone has any ideas that would be greatly appreciated.

2
  • I propose to do not change a Width of main menu items. It looks... non-standard.
    – asktomsk
    Mar 31, 2012 at 20:36
  • well your links dont work anymore ... but have you tried a stackpanel for example or a grid? i had a similiar problem when i started with WPF and was using the default view
    – Pr0gr4mm3r
    May 15, 2017 at 16:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.