Menu

横排

<Menu>

            <MenuItem Header="_File">

            <MenuItem Header="_New¡ê¡ê¡ê"></MenuItem>

            <MenuItem Header="_Open¡ê¡ê¡ê"></MenuItem>

            <Separator />

            <MenuItem Header="Send To">

                <MenuItem Header="Mail Recipient" />

                <MenuItem Header="My Documents" />

            </MenuItem>

            </MenuItem>

           

            <MenuItem Header="_Edit" >

            </MenuItem>

 

            <MenuItem Header="_View" >

            </MenuItem>

 

</Menu>

竖排

<Menu>

            <Menu.ItemsPanel>

                <ItemsPanelTemplate>

                    <StackPanel />

                </ItemsPanelTemplate>

            </Menu.ItemsPanel>

           

            <MenuItem Header="_File">

            <MenuItem Header="_New¡ê¡ê¡ê"></MenuItem>

            <MenuItem Header="_Open¡ê¡ê¡ê"></MenuItem>

            <Separator />

            <MenuItem Header="Send To">

                <MenuItem Header="Mail Recipient" />

                <MenuItem Header="My Documents" />

            </MenuItem>

            </MenuItem>

           

            <MenuItem Header="_Edit" >

            </MenuItem>

 

            <MenuItem Header="_View" >

            </MenuItem>

 

</Menu>

posted @ 2011-11-26 17:06  quietwalk  阅读(179)  评论(0编辑  收藏  举报