xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Xamarin.Forms.Platform.WPF: ToolbarItem - ImageIconSource does not show StreamImageSource #13234

Open UweReisewitz opened 3 years ago

UweReisewitz commented 3 years ago

Description

The ToolbarItem-Control does not draw an Icon if the icon is created with a StreamImageSource

Steps to Reproduce

I have created an example that exhibits the problem

Downlod project: https://github.com/UweReisewitz/TestIconImageSource Compare the Anrdoid and the WPF output

Expected Behavior

The Image should be drawn as in other controls that support an ImageSource

Actual Behavior

There is no Image drawn. Other controls types that support an ImageSource draw the image

Basic Information

Version with issue: 4.8.0.1821 Last known good version: unknown Platform Target Frameworks: iOS: Doesn't work because of a problem with the SkiaSharp Libraries Android: Android 10 UWP: N/A Android Support Library / AndroidX Version: NuGet Packages: Affected Devices:

Environment

Visual Studio 2019 16.8.3

Show/Hide Visual Studio info

Show/Hide Visual Studio info ``` ```

Build Logs

Screenshots

Reproduction Link

Workaround

UweReisewitz commented 3 years ago

Today I have updated the sample application to Xamarin.Forms 5.0.0.1874. The problem is still there .