Hey @internet, @PureWeen and even @davidortinau! How are #XamarinForms things? Does there exist a feature/library that does a "placeholder" image loading? For example, let's say I have a 2MB image on the web and a 10KB image. I would want to load the quick one first... 1/4
This is not if it fails or something, but more the fact that when the app starts, it has a bunch of blank spots. If the internet is not playing nice, it may take 20 seconds to load. But I know I can either generate or load a "thumbnail" much faster and get a better UX... 2/4
I know I can do a load of the image via VM logic, but this might bypass the image caching or something that exists in forms. I know I can also create a fancy new control, but I am thinking what I really want to do is make a new ImageSource type that does all this for me... 3/4
I'm thinking like this:

<Image>
<Image.ImgSrc>
<NewImgSrc Actual="{Binding Actual}" Placeholder="logo.png" />
<Image.ImgSrc>
</Image>

I was hoping to just create a new image source type, but there's no way to "hook into" the infrastructure so say reload me... 4/4
And, just for the record, I know there is a way to do this if I create my own image handler, but this will be good for a cross-platform feature... 4(b)/4
Oh wait... maybe I am dumb...

Is this the bits for it?

- OnLoadingStarted
- OnLoadingCompleted
- OnSourceChanged

I must try!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Matthew Leibowitz

Matthew Leibowitz Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @mattleibow

9 Jul 20
So... #SkiaSharp v2 has gone stable!!! Incredible new features and options for you to play with! We are talking ARM, Musl, WASM, Vulkan, performance, APIs, GPU improvements. Many, many improvements across the board. Try it out now!

github.com/mono/SkiaSharp…
A special thanks to all of YOU in the community who have taken the time to report issue, provide feedback, suggest changes, give recommendations and do the all important testing. Thinking of all the folks who helped get ARM in just in time, the help with WASM, the API reviews.
It has been a very long time since the last "major" update because I was always just trying to get it perfect. It feels very good now, so thanks all for your patience. Let me know how it goes, I'll be tracking the issues and PRs 😉.
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!