Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Menu Icon interferes with separater

$
0
0

After inserting the (arbitrary) icon against "New" in the "File" menu the system disappears the <Separator/> which worked fine before the icon was added.

Can anyone help me to display both the icon and the separator?

Also, why does the black arrowhead accompany the presence of the icon? 

                <Menu x:Name="MenuBar" >
                    <MenuItem Header="_File" >
                        <MenuItem Header="_New">
                            <MenuItem.Icon>
                                <Image Source="Images/ToolBarIcons/Add_12x.png"/>
                            </MenuItem.Icon>
                            <Separator/>
                        </MenuItem>
                        <MenuItem Header="_Save" InputGestureText="Ctrl+S" />
                        <Separator />
                        <MenuItem Header="_Close"/>
                    </MenuItem>
                    <MenuItem Header="Search" >
                        <MenuItem Header="_Search"/>
                    </MenuItem>
                    <MenuItem Header="Help" >
                        <MenuItem Header="_About" />
                        <Separator />
                        <MenuItem Header="_Help"/>
                         <Separator />
                        <MenuItem Header="Send _Feedback" />
                    </MenuItem>
                </Menu>


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>