private async void Ellipse_Loaded(object sender, RoutedEventArgs e) { Ellipse item = sender as Ellipse; await ImageCache.CreateImageCacheFolder(); var cache = await ImageCache.GetFromCacheAsync(Vm.CurrentUserAccount.Avatar.Large); item.Fill = new ImageBrush() { ImageSource = new BitmapImage() { DecodePixelHeight = 108, DecodePixelWidth = 108, UriSource = new Uri(cache.Path) } }; }
public async Task Load() { await Task.Yield(); await ImageCache.CreateImageCacheFolder(); if (Database.DoesAccountExists()) { showUserPanel(); await Database.BuildServices(); await Database.SyncCurrentService(); NavigateToMainPage(); } else { SetupPanelVisibility = true; RaisePropertyChanged(nameof(SetupPanelVisibility)); } }