Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncImage only show the PlaceholderSource. #106

Closed
syuhung opened this issue Feb 5, 2025 · 2 comments · Fixed by #107
Closed

AsyncImage only show the PlaceholderSource. #106

syuhung opened this issue Feb 5, 2025 · 2 comments · Fixed by #107

Comments

@syuhung
Copy link

syuhung commented Feb 5, 2025

I was tring it from document.It seems not works for me.
Xaml

<StackPanel>
  <TextBlock Text="Hello, world!" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  <labs:AsyncImage PlaceholderSource="/Assets/avalonia-logo.ico"
                   Width="80"
                   Source="https://avatars.githubusercontent.com/u/14075148?v=4"
                   Height="80"
                   />
  <labs:AsyncImage Background="Yellow"
                   Width="80"
                   Source="https://avatars.githubusercontent.com/u/14075148?v=4"
                   Height="80"
                   />
  <labs:AsyncImage PlaceholderSource="/Assets/avalonia-logo.ico"
                   Width="40"
                   Source="file://G:\\0.jpg"
                   Height="40"
                   />
  </StackPanel>

Run Example
Image

@timunie
Copy link
Contributor

timunie commented Feb 6, 2025

See the samples in source please. Also you already have a discussion open, so not needed to open another issue.

@syuhung syuhung closed this as completed Feb 6, 2025
@maxkatz6 maxkatz6 reopened this Feb 6, 2025
@timunie
Copy link
Contributor

timunie commented Feb 6, 2025

@syuhung Just tested it and indeed seems to be broken. Seems like the URI isn't converted from string anymore, earlier versions worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants