2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ハンバーガーボタンを作る

Posted at

Segoe MDL2 Assetsフォント文字コードU+E700が例のハンバーガーになる。
下のようにしてあげると使える。

MainPage.xaml
...
<ToggleButton VerticalAlignment="Top">
    <ToggleButton.Content>
        <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xE700;" />
    </ToggleButton.Content>
</ToggleButton>
...

もちろんトグルボタン以外でも使用可能
↓が実行例
Humberger.gif


一部のアイコンはSymbol要素で簡単に指定できる。

<Button VerticalAlignment="Top">
    <SymbolIcon Symbol="Save" />
</Button>

save.gif

このページは要ブクマ。
Segoe MDL2 アイコンのガイドライン
https://msdn.microsoft.com/ja-jp/library/windows/apps/jj841126.aspx


参考:ハンバーガーボタンを実装するには?[Windows 10 UWPアプリ開発]
http://www.atmarkit.co.jp/ait/articles/1508/19/news023.html

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?