Am currently working on a uwp project involving the use of a hamburger menu. So far I generated the menu using this code
Update You cant do that in XAMl. If you want to do in XAMl Use button instead and edit Visual state of Button
You can do like this
private void FontIcon_PointerPressed(object sender, PointerRoutedEventArgs e)
{
(sender as FontIcon).Foreground = new SolidColorBrush(Colors.White);
}
private void FontIcon_PointerEntered(object sender, PointerRoutedEventArgs e)
{
(sender as FontIcon).Foreground = new SolidColorBrush(Colors.White);
}
private void FontIcon_PointerExited(object sender, PointerRoutedEventArgs e)
{
(sender as FontIcon).Foreground = new SolidColorBrush(Colors.Black);
}