Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Surely the control in your image is just a <code>Menu</code> control that has a custom <code>ControlTemplate</code>. We can give the <code>Menu</code> control a new <code>ItemsPanelTemplate</code> to make it work vertically instead of the usual horizontal look. Unfortunately I don't have time to complete this, but I've started you off:</p> <pre><code>&lt;Menu FontFamily="Segoe UI" Background="#FF3C454F" TextElement.Foreground="White"&gt; &lt;Menu.ItemsPanel&gt; &lt;ItemsPanelTemplate&gt; &lt;StackPanel Orientation="Vertical"/&gt; &lt;/ItemsPanelTemplate&gt; &lt;/Menu.ItemsPanel&gt; &lt;Menu.Resources&gt; &lt;Style TargetType="MenuItem"&gt; &lt;Setter Property="Padding" Value="40, 20" /&gt; &lt;/Style&gt; &lt;/Menu.Resources&gt; &lt;MenuItem Header="COMPUTER"&gt; &lt;MenuItem Header="WEBSITE" /&gt; &lt;MenuItem Header="VIRTUAL MACHINE" /&gt; &lt;MenuItem Header="MOBILE SERVICE" /&gt; &lt;/MenuItem&gt; &lt;MenuItem Header="DATA SERVICES"&gt; &lt;MenuItem Header="WEBSITE" /&gt; &lt;MenuItem Header="VIRTUAL MACHINE" /&gt; &lt;MenuItem Header="MOBILE SERVICE" /&gt; &lt;/MenuItem&gt; &lt;MenuItem Header="NETWORK SERVICES"&gt; &lt;MenuItem Header="WEBSITE" /&gt; &lt;MenuItem Header="VIRTUAL MACHINE" /&gt; &lt;MenuItem Header="MOBILE SERVICE" /&gt; &lt;/MenuItem&gt; &lt;/Menu&gt; </code></pre> <p>There's still lots for you to do though... the most important part will be to define a new <code>ControlTemplate</code> the <code>Menu</code> and the <code>MenuItem</code>s. You'll need to move the next level of <code>MenuItem</code>s from the current <code>Popup</code> control to the next column in a <code>Grid</code>. </p> <p>The best way to start this job is to use the default <code>ControlTemplate</code> and then 'tweak' it to your liking once you have it working as normal. You can find the default <code>ControlTemplate</code> in the <a href="http://msdn.microsoft.com/en-us/library/ms752296%28v=vs.110%29.aspx" rel="nofollow">Menu Styles and Templates</a> page on MSDN. Another resource can be found on the <a href="http://msdn.microsoft.com/en-us/library/ms747082%28v=vs.85%29.aspx" rel="nofollow">MenuItem ControlTemplate Example</a> page, although it might have the same code, I'm not quite sure.</p> <p>One final point I'd like to make is that if this project proves to be too difficult for you, you could probably make your UI look like your image using a number of <code>ListBox</code> controls, where the items represent the menu items. It would be quite easy to change the items dependant on the previous menu item that the user clicked on.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload