So i Have a very Simple software to call a multi Image list
and show them in a (Next
) + (Previous
) format like this :
and its work great for me but when i Hold on (NEXT) button to pass all items fast , after 10 or 20 item the whole window freezes and Lag , some recherche says to use background worker to prevent this so i tried to insert this :
var getImage = Directory.EnumerateFiles(DirName, Ext,
SearchOption.TopDirectoryOnly);
inside this :
Dispatcher.Invoke(DispatcherPriority.Background,
new Action(() => /*### the Images output Here ###*/ ));
but the same Issues still happening
how to make it work correctly ?
and if there is any other way to do it i'll be happy to know it .
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…