public void SetStory() { try { SetImage(); var anim = BackgroundImage.Blur(17) /*.Rotate(30)*/; anim.SetDurationForAll(0); anim.SetDelay(0); anim.Start(); } catch { } }
public Overlay() { InitializeComponent(); _dispatcher = CoreWindow.GetForCurrentThread().Dispatcher; ViewModel.Service.PropertyChanged += Service_PropertyChanged; // Set the accent color AccentHelper.UpdateAccentColor(); BackgroundImage.Blur(40).Start(); BackgroundImage.Source = new BitmapImage(new Uri(ArtworkConverter.ConvertObjectToImage(ViewModel.Service.CurrentTrack))); }
public void SetStory() { try { SetImage(); //var img = item.ImageList.FirstOrDefault().Uri.GetBitmap(); //BackgroundImage.Source = img; //Image.Source = img; var anim = BackgroundImage.Blur(17) /*.Rotate(30)*/; anim.SetDurationForAll(0); anim.SetDelay(0); anim.Start(); } catch { } }
public OverlayView() { InitializeComponent(); _dispatcher = CoreWindow.GetForCurrentThread().Dispatcher; ViewModel.Service.PropertyChanged += Service_PropertyChanged; // Set the accent color TitlebarHelper.UpdateTitlebarStyle(); BackgroundImage.Source = new BitmapImage(new Uri(ArtworkConverter.ConvertObjectToImage(ViewModel.Service.CurrentTrack))); TrackTitle.Text = ViewModel.Service.CurrentTrack.Title; TrackUser.Text = ViewModel.Service.CurrentTrack.User.Username; BackgroundImage.Blur(18).Start(); }