Example #1
0
        private async void btnPin_Click(object sender, RoutedEventArgs e)
        {
            if (!TileHomePage.SecondaryTileExist())
            {
                Boolean _pinned = await TileHomePage.PinSecondaryTile((FrameworkElement)sender);

                ToggleAppBarButton(!_pinned);
            }
            else
            {
                Boolean _unpinned = await TileHomePage.UnpinSecondaryTile((FrameworkElement)sender);

                ToggleAppBarButton(_unpinned);
            }
        }
Example #2
0
 private void AppBarOpened_Callback(object sender, object e)
 {
     CheckConnectionStatus();
     _configurationPanel.Hide();
     ToggleAppBarButton(!TileHomePage.SecondaryTileExist());
 }