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); } }
private void AppBarOpened_Callback(object sender, object e) { CheckConnectionStatus(); _configurationPanel.Hide(); ToggleAppBarButton(!TileHomePage.SecondaryTileExist()); }