private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { var visibility = (Visibility)Application.Current.Resources["PhoneLightThemeVisibility"]; if (visibility == Visibility.Visible) { var button = (IApplicationBarIconButton)ApplicationBar.Buttons[1]; button.IconUri=new Uri("H_light.png",UriKind.Relative); } else { var button = (IApplicationBarIconButton)ApplicationBar.Buttons[1]; button.IconUri = new Uri("H_dark.png", UriKind.Relative); } }
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: