2014-06-29 112 views

回答

2

創建嵌套子的菜單項裏過濾,這就是你想要的東西:

<ContextMenu> 
    <MenuItem Header="Create Supplier" Click="btnCreateSupplier_Click"/> 
    <MenuItem Header="Edit Supplier" Click="btnEditSupplier_Click"/> 
    <MenuItem Header="Filters"> 
     <MenuItem Header="Sub Filter 1"/> 
     <MenuItem Header="Sub Filter 2"/> 
     <MenuItem Header="Sub Filter 3"/> 
    </MenuItem> 
</ContextMenu>