Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9139891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:26:44+00:00 2026-06-17T09:26:44+00:00

Inside our WPF application We have IObservable which gets populated from our server. as

  • 0

Inside our WPF application We have IObservable which gets populated from our server. as we are moving to new .NET 4.5 features (async, await), at first we only load ReturnItems withou image an after its successful download we use Parallel.Foreach() to load associated images as well.

when image download completes for each item byte[] is assigned to ReturnItems CoverImage property and from my UI DataTemplate s Image element is bound to this property as well.

What I want to achieve is animate this image load process so there is some sort of fadein from nothing animation when image completes loading. I want to use storyboards if possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:26:45+00:00Added an answer on June 17, 2026 at 9:26 am

    I assume that before you set the source of the image it is null, i.e. it’s not an empty array or similar. If so, use this style for the image:

    <Style x:Key="StyleImageFadeIn"
           TargetType="{x:Type Image}">
        <Setter Property="Opacity"
                Value="0" />
        <Style.Triggers>
            <!--Sets visibility to Collapsed if Source is null - this will cause IsVisible to be false-->
            <Trigger Property="Source"
                     Value="{x:Null}">
                <Setter Property="Visibility"
                        Value="Collapsed" />
            </Trigger>
            <!--Fades-in the image when it becomes visible-->
            <Trigger Property="IsVisible" Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard>
                        <BeginStoryboard.Storyboard>
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetProperty="Opacity"
                                                 To="1"
                                                 Duration="0:0:1"/>
                            </Storyboard>
                        </BeginStoryboard.Storyboard>
                    </BeginStoryboard>
                </Trigger.EnterActions>
                <!--This (ExitActions) is only necessary if the image is "loosing" its source at run-time-->
                <Trigger.ExitActions>
                    <BeginStoryboard>
                        <BeginStoryboard.Storyboard>
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetProperty="Opacity"
                                                 To="0"
                                                 Duration="0:0:0" />
                            </Storyboard>
                        </BeginStoryboard.Storyboard>
                    </BeginStoryboard>
                </Trigger.ExitActions>
            </Trigger>
        </Style.Triggers>
    </Style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in our application we have a Java applet running inside a .NET browser control.
We have a development box which is inside our network and a web server
Can we have an edit text box inside our menu which gets displayed in
Inside our web application, we have some messaging functionality for messaging other members. This
We're migrating from an SVN server inside our office to a hosted service. Currently
We have deployed our web application deployed on oracle applications server 10 and we
I have this Linux script inside our server . This script is used for
We have a small .NET web application (aspx & ascx) that is used inside
I have build server inside our domain (and it needs to be because it
I have an application that I would like to embed inside our companies CMS.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.