private void SetCover( BookItem B ) { Worker.UIInvoke( () => { BitmapImage bmp = new BitmapImage(); bmp.SetSourceFromUrl( B.CoverPath ); B.Cover = bmp; } ); }
private void RefreshAvatar() { Image.Destroy( Avatar ); Avatar = new BitmapImage(); if ( !( Member.IsLoggedIn && Shared.Storage.FileExists( AvatarLocation ) ) ) { NotifyChanged( "Avatar" ); return; } Avatar.SetSourceFromUrl( AvatarLocation ); NotifyChanged( "Avatar" ); }