Skip to content

Commit

Permalink
Add menu, menu>mi, cmenu, cmenu>mi
Browse files Browse the repository at this point in the history
  • Loading branch information
emu2021makuake authored Jul 19, 2021
1 parent da1e225 commit cd1428c
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions Xammet.snippet
Original file line number Diff line number Diff line change
Expand Up @@ -823,4 +823,84 @@
</Snippet>
</CodeSnippet>

<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>Menu</Title>
<Description>&lt;Menu&gt;</Description>
<Shortcut>menu</Shortcut>
</Header>
<Snippet>
<Code Language="XAML">
<![CDATA[<Menu>$end$</Menu>]]>
</Code>
</Snippet>
</CodeSnippet>

<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>Menu&gt;MenuItem</Title>
<Description>&lt;Menu&gt;&lt;MenuItem&gt; ...</Description>
<Shortcut>menu&gt;mi</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>Value1</ID>
<Default>Item1</Default>
</Literal>
</Declarations>
<Code Language="XAML">
<![CDATA[<Menu>
<MenuItem Header="$Value1$" />$selected$$end$
</Menu>]]>
</Code>
</Snippet>
</CodeSnippet>

<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>ContextMenu</Title>
<Description>&lt;ContextMenu&gt;</Description>
<Shortcut>cmenu</Shortcut>
</Header>
<Snippet>
<Code Language="XAML">
<![CDATA[<ContextMenu>$end$</ContextMenu>]]>
</Code>
</Snippet>
</CodeSnippet>

<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>ContextMenu&gt;MenuItem</Title>
<Description>&lt;ContextMenu&gt;&lt;MenuItem&gt; ...</Description>
<Shortcut>cmenu&gt;mi</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>Value1</ID>
<Default>Item1</Default>
</Literal>
</Declarations>
<Code Language="XAML">
<![CDATA[<ContextMenu>
<MenuItem Header="$Value1$" />$selected$$end$
</ContextMenu>]]>
</Code>
</Snippet>
</CodeSnippet>

</CodeSnippets>

0 comments on commit cd1428c

Please sign in to comment.