/// <summary> /// Load image file /// </summary> /// <param name="path">Path to image file</param> private void LoadImage(string path) { var imgPreview = new ImagePreview(); imgPreview.LoadImage(path); gContent.Children.Add(imgPreview); gContent.Background = Brushes.Black; }