WPF Image: .Source = Clipboard.GetImage() is not displayed
问题 This simple program does not work, the image does not appear in the Window. namespace ClipBoardTest { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void CopyButton_Click(object sender, RoutedEventArgs e) { if (Clipboard.ContainsImage()) { ImageUIElement.Source = Clipboard.GetImage(); Console.WriteLine("Clipboard copied to UIElement"); } else { Console.WriteLine("No image in Clipboard"); } } } } Output is "Clipboard copied to UIElement", but