A simple sidebar control which is commonly used in Android apps.
Currently this control is available for Windows Phone 8 apps only. I do not plan to add a Windows Phone 7 version, but feel free to create one. This project is compatible with Visual Studio 2013.
- Get the control - I recommend using NuGet: https://www.nuget.org/packages/SidebarWP8
- Import the namespace in your XAML:
xmlns:sidebar="clr-namespace:SidebarWP8;assembly=SidebarWP8"
- Include the control in the content area of your page:
<sidebar:SidebarControl />
- Customise the control and its content:
HeaderText
: Set the header textHeaderTemplate
: If you want to create a more fancy header area, create your own templateHeaderBackground
: Set the background of the header areaHeaderForeground
: Set the foreground of the header areaSidebarBackground
: Set the background of the sidebar
- Provide contents:
- Put the stuff to present in the sidebar inside the Property
SidebarContent
:<sidebar:SidebarControl.SidebarContent><Grid>...</Grid></sidebar:SidebarControl.SidebarContent>
- Put the pages content in the content area of the control
- Put the stuff to present in the sidebar inside the Property
You may take a look at the sample project which is included in the repository.
Feel free to contribute to this project: add issues or create pull request.
- Initial implementation