SIGN UP MEMBER LOGIN:    
ARTICLE

Blinking image in Expression Blend

Posted by Manoj Singh Panwar Articles | Expression Studio November 08, 2011
In this article I will demonstrate how Expression Blend can be used to allow the blinking of an image in an application.
Reader Level:

Blinking Image application in Expression blend

Hi guys, In this article I'll will demonstrating the simplest and most interesting application in expression blend and that too without hectic coding. In this article you will see that two images come and go one by one in the window and this produces a blinking effect. It is not very big task doing this thing in blend not even any other task, the only thing is as far as you explore your vision and think you can disguise it into a wonderful and interactive application.

So to start with this application all you need to do is follow the steps stated below :

Step 1 : Start Expression Blend 4 and select the WPF application and name it Blinking image.

Untitled-13.gif

Step 2 : Now go to toolbox and select two wrap panels. For this either select from the toolbox and if it is not present there go to assets library then type "panel" in the search box and then select the wrap panel and drag it on the artboard.

panel.gif

Step 3 : After selecting the panel, name them from the property window as panel1 and panel2.

name-panel.gif

Step 4 : Select the Label in the same way as you selected panel above and name it as lbl in the same way as you have named the panels above.

Step 5 : Now drag and set the two panels on the artboard such that they overlap each other.Then select the panel1 from the object and timeline palette and drag any image into the panel1. this is done in two ways either you select the image from the storage drive and drag it on the panel or copy the image and first paste it in the solution explorer under project window and then, on selecting the panel from the object and timeline window , right click on the image and select insert. The image will be inserted into the panel1.

insert-image.gif

Step 6 : Similarly add image to the panel2 also. You can add gradient to the artboard to make the application look more lively.

Step 7 : Now we start working with the main feature of the application i.e. adding the blinking effect. For this go to the object and timeline palette and click the "+" sign to add a new storyboard to the application. This will create a recording window in the design area. Here name the Label as image 1.

addtimeline.gif

Step 8 : Now set the timeline to the zero second point and then press the recoding button if it is not active

record-button.gif

Step 9 : Now turn off the recording by pressing the red button at the top of the design window and at the same time set the timeline to the 2 seconds mark.

After this turn on the recording and goto the property window while selecting the panel and under the appearance property select visible = hidden. Select the Label and change its gradient from the gradient brush and name it as image 2.

visibility.gif

Step 10 : Now again drag the timeline to the 3 seconds mark and again go to the property window while selecting the panel and under the appearance property select visible = hidden, this time we are hiding the panel2. Select the Label and change its gradient from the gradient brush and name it as image 1.

image-name.gif

Step 11 : Repeat the same process for at least 5 to 10 seconds in order to bring consistency in the application for long time. Then right click the recording path and select edit repeat count and select it to infinity. This property allows application to keep blinking effect until the application is closed.

repeat-path.gif

Output

output1.gif

output2.gif

output3.gif

Hopeyou enjoyed the application. You can create much more than this in Expression Blend. Do post your views to help us bring best of the best for you.

Login to add your contents and source code to this article
share this article :
post comment
 
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Nevron Gauge for SharePoint
Become a Sponsor