Why is WPF Menu occupying so much space in VS2008 IDE? | Programming, .NET, Silverlight & More

Why is WPF Menu occupying so much space in VS2008 IDE?

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)

No TweetBacks yet. (Be the first to Tweet this post)

One Response

  1. Alex M Says:

    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

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.