public ImagesPresentation() { back = new Image(); backGrid = new Grid { Background = Brushes.Black }; backGrid.Children.Add(back); front = new Image(); frontGrid = new Grid { Background = Brushes.Black }; frontGrid.Children.Add(front); this.Control.Children.Add(backGrid); this.Control.Children.Add(frontGrid); Loader.SetDisplayOption(back, DisplayOptions.FullResolution); Loader.AddLoadedHandler(back, back_Loaded); DoubleAnimation ani = new DoubleAnimation { From = 1.0, To = 0.0, FillBehavior = FillBehavior.Stop }; ani.Completed += ani_Completed; Storyboard.SetTarget(ani, frontGrid); Storyboard.SetTargetProperty(ani, new PropertyPath(Image.OpacityProperty)); storyboard = new Storyboard(); storyboard.Children.Add(ani); }