private void _OnFriendsHasCount(object sender, NotifyCollectionChangedEventArgs e) { if (ServiceProvider.ViewManager.Friends.Count > 0) { ServiceProvider.ViewManager.Friends.CollectionChanged -= _OnFriendsHasCount; SplashScreenOverlay.GenerateCustomSplashScreen(ServiceProvider.ViewManager.Friends); } }
private static void _FriendImageDownloadCompleted(List <ImageSource> friendImages) { BitmapSource overlaidImage = SplashScreenOverlay._AddOverlay( new BitmapImage(new Uri("pack://application:,,,/Resources/Images/splash.png")), _BubbleRects, friendImages, ClipAlgorithm.Elliptical); Utility.SaveToPng(overlaidImage, CustomSplashPath); }
internal static void ClearUserState() { new FacebookLoginService(FacebookClientApplication.FacebookApiKey, FacebookClientApplication.FacebookApiId) .ClearCachedCredentials(); SplashScreenOverlay.DeleteCustomSplashScreen(); }