This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] [WPF]ImageButton with source from resource throw System.InvalidOperationException #8038
Labels
a/imagebutton
help wanted
We welcome community contributions to any issue, but these might be a good place to start!
i/high
Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often
in-progress
This issue has an associated pull request that may resolve it!
p/WPF
s/unverified
New report that has yet to be verified
t/bug 🐛
up-for-grabs
We welcome community contributions to any issue, but these might be a good place to start!
TestWpfImageButton.zip
#8025 # Description
Set ImageButton.Source with ImageSource from resource in page constructor on WPF platform, System.InvalidOperationException will be throwed when page apprearing.
Steps to Reproduce
Basic Information
CODE:
xaml
<ImageButton x:Name="btnResx" />
cs
public MainPage() { InitializeComponent(); btnResx.Source = ImageSource.FromResource("TestWpfImageButton.cat.png"); }
Attached is the solution source code.
The text was updated successfully, but these errors were encountered: