This repository has been archived by the owner on Oct 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c056d77
commit bd9b759
Showing
1 changed file
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
# HamburgerMenu | ||
Windows 10 styled Hamburger Menu control for WPF | ||
Windows 10 styled, customizable Hamburger Menu control for WPF | ||
|
||
# Getting Started | ||
Add library reference in xaml: | ||
``` | ||
xmlns:HamburgerMenu="clr-namespace:HamburgerMenu;assembly=HamburgerMenu" | ||
``` | ||
|
||
Create a Hamburger Menu control and set Background Color, Menu Icon Color, Selection Indicator Color and Menu Item Foreground Color: | ||
``` | ||
<HamburgerMenu:HamburgerMenu Background="Blue" MenuIconColor="White" SelectionIndicatorColor="White" MenuItemForeground="White" HorizontalAlignment="Left"> | ||
</HamburgerMenu:HamburgerMenu> | ||
``` | ||
|
||
Add Menu Items and set their Icon and Text: | ||
``` | ||
<HamburgerMenu:HamburgerMenu Background="Blue" MenuIconColor="White" SelectionIndicatorColor="White" MenuItemForeground="White" HorizontalAlignment="Left"> | ||
<HamburgerMenu:HamburgerMenuItem Icon="Assets/home.png" Text="Home" SelectionCommand="{Binding ElementName=this_}"/> | ||
<HamburgerMenu:HamburgerMenuItem Icon="Assets/search.png" Text="Search"/> | ||
<HamburgerMenu:HamburgerMenuItem Icon="Assets/favorite.png" Text="Likes"/> | ||
<HamburgerMenu:HamburgerMenuItem Icon="Assets/list.png" Text="Lists"/> | ||
<HamburgerMenu:HamburgerMenuItem Icon="Assets/person.png" Text="Profile"/> | ||
</HamburgerMenu:HamburgerMenu> | ||
``` |