Fernando Sousaa
Fernando Sousaa

Reputation: 65

Custom Icons - Hamburger Menu

How do I put my icons on the hamburger menu? I'm using it to put the icons that already exist: Symbol="Home"

<StackPanel Orientation="Horizontal">
    <SymbolIcon Width="48" Height="48" Symbol="Home" />
    <TextBlock Margin="12,0,0,0" VerticalAlignment="Center" Text="Página Principal"/>
</StackPanel>

But now I wanted to use icons created by me!

Upvotes: 0

Views: 306

Answers (1)

Romasz
Romasz

Reputation: 29790

What you are using in your code is SymbolIcon which just has some icons defined and you cannot use it for your own defined icons.

If you take a look at controls at MSDN you will find that you have couple of ways of implementing own icon (apart from proposed Image):

  • BitmapIcon where you can put URI to your file in assets,
  • FontIcon where you can put Glyph from selected font,
  • PathIcon where you can put any Geometry as Data - this one resizes very nice.

Upvotes: 1

Related Questions