Posts

Showing posts with the label Silverlight

Installation of Silverlight 4

Image
As we already have discussed, Visual Studio 2010 and Expression Studio 4 are our primary requirement to develop Silverlight applications. However, in addition to Visual Studio and Expression Studio we have big list of available software which adds more features to our development job. I hope reader of this page is aware about the installation of Visual Studio 2010, I recommend to install VS 2010 completely before getting started with another installation processes. Ok…fine. Now let’s install Expression Studio 4 that may be new to you. You can download 60 days trial version from  http://www.microsoft.com/expression/ . After downloading, double click to setup file and you will find following screen. Above screenshot initializing already installed product on your system and also the availability of Visual Studio 2010 in some cases. After all initialization you find get following screenshot. Above screenshot prompt the license agreement to you and simply accept it

Silverlight Videos, Silverlight learning resource on YouTube

Today I found a great Silverlight YouTube channel and one of the great learning resource on YouTube, I really enjoyed the learning there. Visit once here .

Different Ways to Add Media Files in XAML Silverlight

Image
Introduction In Silverlight, adding a media component is very common and easy task but a little difficult for beginners. It is very important to know the various available ways to add media files to our project (Solution Explorer). Way 1: Dragging and Dropping Using this, we can directly add our media to a project or any particular cell. When you drop the media in project or cell, it will copy that media file in project directory that is in 'SilverlightApplication1' directory. In this way we can add any type of media files; images, videos etc. We can also create a directory by right clicking on 'SilverlightApplication1' and drop media directly to that directory and to use it, drag again from that directory to cell or stage. Way 2: Add Existing Item This is the simplest way; right click on 'SilverlightApplicaton1' and click on the option 'Add Existing Item..'  and then select the files to add. Way 3: Copy and Paste T

Playing and Controlling Video Playback in XAML Silverlight

Image
Introduction Using videos in a Silverlight based application is a very exciting feature that come early Silverlight 2. Today we see the most extended Silverlight specially Microsoft added GPU Hardware Acceleration for video and bitmap in Silverlight 3 and now Silverlight 4 supports the output protection for video and audio. To use or develop video based applications in Silverlight 4, we need to have media player 10 installed. [ Download Media Player ] How to Play Video To play the video, we can simply drag the compatible [ List of Supported Media Formats ] video file on the development stage. There are many more ways to add media files as I have discussed in my one of the post. [ Different Ways to Add Media files in XAML Silverlight ] Now, if you add videos in the development stage and test it, then it will have the following three annoying work: 1.             Movie will automatically start 2.             Movie runs untill the end and when reaches at end c

Editing the Path of any Shape in XAML Silverlight

Image
Introduction In Expressing Blend we are not only limited to draw some primitives line rectangle, line or ellipse. Expression Blend help us to create any shape. Expression Blen has two tools named Pen and Pencil which let us to create path and selection cursor let us to modify the shape. Let’s create any shape using these tools. Follow the steps: Step 1 Create a new project in Expression Blend and draw a rectangle and fill any color. Step 2 Using selection tool select the rectangle and click on Object > Path > Convert to Path. This option will add four anchor points to rectangle, click on ‘Direct Selection’ tool to view that anchors. Step 3 Now select Pen tool to add three new anchor points in exiting rectangle shape. Notice, you click to add new anchor when see + sign with pen tool and also notice the – sign with pen tool to delete exiting anchor point. Press Ctrl+Z for undo. Step 4 After inserting two new anchor points select the ‘D

Applying Image in TextBlock Foreground in XAML Silverlight

Image
Introduction So far we only learn how to apply color in foreground of TextBlock but in this post you will learn how to apply image instead of color. Applying images as foreground looks much attractive than simple color. Gradient will be also one option here instead of image but sometimes images also plays good role. Ok…then let’s begin to use image in foreground of TextBlock. Refer the previous posts to learn how to use media in project. Here we will be using images directory without talking about basics. To use image in foreground we use following code : <TextBlock Name="txtITORIAN" Text="ITORIAN" FontSize="150" FontWeight="Bold" FontFamily="Arial">           <TextBlock.Foreground>                    <ImageBrush ImageSource="sample.jpg" />           </TextBlock.Foreground> </TextBlock> If you don’t wish to apply image, use following code: <TextBlock Name=&qu

Simple Animation in Expression Blend Silverlight

Image
Introduction Developing Animations in Silverlight is fully based on key-frames. The Silverlight framework calculates the transitions to apply in scene and at run time it looks like animation. Let’s develop our very first animation using Expression Blend. Follow the Steps:- Step 1 Create a new Silverlight Application + Website in Expression Blend. Step 2 Navigate to ‘Objects and Timeline’ window and select the ‘LayoutRoot’ element. Step 3 Draw a new ‘Rectangle’. When you draw a rectangle it will appear inside the ‘LayoutRoot’ hierarchy. Look at image. Step 4 Select the Rectangle from ‘Object and Timeline’ category and navigate to Object > Path > Convert to Path. When you click this it will convert the ‘Rectangle’ to Path. Look at image below. Step 5 Now, select the ‘Path’ from ‘Object and Timeline’ category and click to select pen toolbar. Using pen tool click on rectangle (path) outline to draw anchor points, look in ima

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples