wpf - C# toggle visibility in Grid - slow speed -
i'm creating interactive slideshow control in wpf/c#. i've want create similar lightbox , coverflow.
i'm using fading effect: http://www.codeproject.com/articles/57175/wpf-how-to-animate-visibility-property/?display=mobile
and code testing coverflow: http://d3dal3.blogspot.com/2009/04/wpf-cover-flow-tutorial-part-7.html
everything works ok if don't many covers in coverflow... if there more 5 takes > 3 - 4 seconds start fading animation (animation ok). when fade out layer , again fade in working perfectly, how ever when restart app , want fade in element need wait animation more 3, 4 seconds. seems wpf need render(?) collapsed element , animation starts... how can fix problem?
here code window:
<window> <grid> . . . . other content <border x:name="panelloading" visibility="collapsed" common:visibilityanimation.animationtype="fade"> <grid> <border background="black" opacity="0.6"> </border> <grid> <flow:flowcontrol x:name="flow" margin="0" width="1000" height="800"></flow:flowcontrol> </grid> </grid> </border> </grid></window>
if i'm understanding description, guess you're loading of images memory window starts up.
you load first image in main thread, use backgroundworker load upcoming images.
Comments
Post a Comment