However, when I run the program the Menu collapses to normal size.
Is there some way to make VS2008 display the menu properly? It’s taking up a lot of space in the IDE, and is very distracting. I’ve tried changing the width values in the MenuItems, but then I can not see the name of the menus.
(I tried uploading pics for examples, but apparently yahoo answers bans tinypic links or something)
If the menu is normal size when running then it’s most likely the IDE that is causing a rendering issue. The best option would be to ignore it. Do not code an widths and let the default (auto) be use.
Looking at my code here is an example:
<Menu VerticalAlignment="Top">
<MenuItem Header="Add New">
<MenuItem Header="Equipment" Click="EquipmentMenuItem"/>
<MenuItem Header="Material" Click="MaterialMenuItem"/>
<MenuItem Header="Employee" Click="EmployeeMenuItem"/>
<MenuItem Header="Manufacturer" Click="ManufacturerMenuItem"/>
<MenuItem Header="Supplier" Click="SupplierMenuItem"/>
<MenuItem Header="Unit" Click="UnitMenuItem"/>
</MenuItem>
</Menu>
Hope this helps. (Yahoo removes the tabbing)
September 9th, 2009 at 11:09 pm
If the menu is normal size when running then it’s most likely the IDE that is causing a rendering issue. The best option would be to ignore it. Do not code an widths and let the default (auto) be use.
Looking at my code here is an example:
<Menu VerticalAlignment="Top">
<MenuItem Header="Add New">
<MenuItem Header="Equipment" Click="EquipmentMenuItem"/>
<MenuItem Header="Material" Click="MaterialMenuItem"/>
<MenuItem Header="Employee" Click="EmployeeMenuItem"/>
<MenuItem Header="Manufacturer" Click="ManufacturerMenuItem"/>
<MenuItem Header="Supplier" Click="SupplierMenuItem"/>
<MenuItem Header="Unit" Click="UnitMenuItem"/>
</MenuItem>
</Menu>
Hope this helps. (Yahoo removes the tabbing)
References :
Me