Controlling Image Caching in Xamarin.Forms & .NET MAUI

  Рет қаралды 10,360

James Montemagno

James Montemagno

Күн бұрын

Пікірлер: 24
@abaal2109
@abaal2109 2 жыл бұрын
In xaml if you set the cache validity to 0:1:0 it will do it for 1 minute.
@JamesMontemagno
@JamesMontemagno 2 жыл бұрын
🤯🤯🤯 I knew someone would know how to do it! I’ll try it out. I searched for like an hour with no success
@abaal2109
@abaal2109 2 жыл бұрын
@@JamesMontemagno When i started working with wpf that's one of the cool thing i learned.
@Emrys_Gough
@Emrys_Gough 2 жыл бұрын
I appreciate the videos that you are creating in this series. These videos are helping me build my own app as I teach myself.
@emmanueladebiyi2109
@emmanueladebiyi2109 2 жыл бұрын
Nice to know this. Thanks James!
@MrNawshad
@MrNawshad 2 жыл бұрын
Great stuff as always.
@Mielesplayz
@Mielesplayz Жыл бұрын
thanks, I didn't know you can just simply disable caching from an image (I have a profile picture system, but it kept loading previous images because of the cache)
@ap00rva
@ap00rva 5 ай бұрын
Thanks for the example. One thing that we are struggling in Maui is that the Image Url that we have is protected and we have to provide an Authorization bearer token, so is there a way to inject the HTTP header and put the Authorization token? This is specifically for Android.
@wilddy88
@wilddy88 Жыл бұрын
Hello James, great video as usual. Is there a way to check if the image is loaded correctly? So that we can change to a placeholder image if the load fails ?
@danielc6765
@danielc6765 2 жыл бұрын
Could you explain about a listview with images from local storage?
Жыл бұрын
Is there a way to improve local image loading ? Since we are on MAUI and can't use FFImageLoading, there are small lags when displaying local image in collectionview
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Have you looked at t.co/73i5Haumr3 also there is a new ffimageloading as well I think github.com/Redth/FFImageLoading
Жыл бұрын
@@JamesMontemagno our main performance issue is on Android, image displaying is not as smooth as xamarin. we are still looking for an improvement.
@greeksinmars
@greeksinmars 2 жыл бұрын
Very cool...
@NavneetKeyIdeas
@NavneetKeyIdeas Жыл бұрын
Is there any way to clear the image cache if the image changed in url?
@poorneshv7532
@poorneshv7532 2 жыл бұрын
@James Montemagno Great Content !! Will you be uploading content on push notifications in the future?
@JamesMontemagno
@JamesMontemagno 2 жыл бұрын
Checkout Gerald's recent videos on push - kzbin.info/www/bejne/d3y8lpWnhKh0sLs
@fanyang1972
@fanyang1972 3 ай бұрын
What if the image is stored locally; and can be taken?
@fanyang1972
@fanyang1972 3 ай бұрын
figured out: replacing ImageSource.FromFile( localFile) with var byteArray = File.ReadAllBytes(localFile); ImageSource.FromStream(() => new MemoryStream(byteArray))
@treasurenkonyana2745
@treasurenkonyana2745 2 жыл бұрын
Hi James thanks for the great video. What I want to know is, what if you want to cache the Image for a feew days but still be able to allow the user to update it before the cache experation date? cause the Image does not update if still cached even on property changed. and I don't think it's optimal to diable cache
@JamesMontemagno
@JamesMontemagno 2 жыл бұрын
Not that I know of off the top of my mind. What you may be able to do is create the image with the normal cache days but when you refresh manually then turn off caching in that instance and then put it back later
@treasurenkonyana2745
@treasurenkonyana2745 2 жыл бұрын
@@JamesMontemagno Did anyone ever told you that you are a genius :) haha Thanks it worked
@williamprogramer4168
@williamprogramer4168 2 жыл бұрын
⭐⭐⭐⭐⭐
@irql2
@irql2 2 жыл бұрын
Oh no, you forgot to enable dark mode in vs2022! Please think of your viewers eyes! lol :)
Animating Controls in .NET MAUI & Xamarin.Forms
19:19
James Montemagno
Рет қаралды 26 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 19 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН
Custom Fonts & Font Icons/Images in Xamarin.Forms
20:18
James Montemagno
Рет қаралды 22 М.
Highly Customizable Popups for .NET MAUI with Mopups
18:20
Gerald Versluis
Рет қаралды 30 М.
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 62 М.
Upgrading from Xamarin to .NET MAUI
13:33
Microsoft Developer
Рет қаралды 9 М.
Build Better Apps with .NET Aspire - Complete Beginner's Guide & Tutorial
1:12:47
The New Option and Result Types of C#
15:05
Nick Chapsas
Рет қаралды 65 М.
Project Structure/Single Project - .NET MAUI Tutorial Step-by-Step
18:07
Postgres just got even faster
26:42
Hussein Nasser
Рет қаралды 21 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26