Posts tagged "silverlight"

First Guide to MEF and Silverlight (Part–II)


In my previous article “First Guide to MEF & Silverlight (Part–I)” I discussed about MEF with a small simple console application. Hope that was useful to you to understand the basic knowledge of MEF. In this article, I will guide you to create a simple Silverlight application using the MEF. If you are new to MEF, I strongly recommend you to read my previous article to gain knowledge on the basic things of MEF like Importing, Exporting, Catalog, Container etc. Read the complete article and at the end if you have any queries, please let me know. I will try to answer them as soon as possible. Always Appreciate your valuable feedbacks. To start working with the Silverlight & MEF application, you need to setup your development environment. In your development PC, you need the following things already installed: Visual Studio 2010 with .Net Framework 4.0 Silverlight 4.0 Tools for Visual Studio 2010 Once your environment is ready with the above tools, we can start with our next step. First of all, we need to create a Silverlight application project and then we have to add some assembly reference in order to work with the MEF. Hence, follow the following steps to setup your project: Open your Visual Studio 2010 IDE Now go to File –> New –> Project or just press Ctrl + Shift + N to open the “New Project” dialog window. From the left panel expand “Visual C#” and then select “Silverlight”. This will populate the right pane with the Silverlight templates.

Image [http://www.kunal-chowdhury.com] 

In the right pane, select “.Net Framework 4” from the DropDown present at the top of the screen. This is require because, we want to do application programming for the target version i.e. Framework 4. Chose “Silverlight Application” from the right pane and click “OK”. I assumed that, you selected proper location and named your application project properly (in our case, I named it as “MEFWithSilverlightDemo”). Once you click “OK”, it will ask you to create a new Web site. This step is require to host the Silverlight application.

Image [http://www.kunal-chowdhury.com]

Be sure that, in the above dialog “Silverlight 4” has been selected as the Silverlight version. Once you click “OK” the Visual Studio IDE will start creating your Silverlight project. It will create two project (one is your Silverlight application project and the other is your Silverlight application hosting website).

Image [http://www.kunal-chowdhury.com]

Once the project created by the IDE, you need to add a reference of the Assembly named “System.ComponentModel.Composition” and a reference of the Assembly named “System.ComponentModel.Composition.Initialization” to your project. To do this, right click on your Silverlight Application project and click “Add Reference”. From the “Add Reference” dialog find the assembly named “System.ComponentModel.Composition” and “System.ComponentModel.Composition.Initialization” to add them to your project.

Image [http://www.kunal-chowdhury.com] 

Once done with all the above steps, your project is ready for the MEF development. Let us first decide what we want to do in our example. We will create a Silverlight application where we will include some UserControls as a Widget. This is for learning purpose and hence don’t go with the UI. So, in our sample application we will create a UserControl and mark it as Exportable. Then we will import the UserControl in our application to add it in the UI. Next we will create another UserControl and mark it as Exportable, so that without any other change in the code, it should add in the main UI. This is just an example to showcase the MEF functionality in Silverlight applications. Let’s jump into the code. First of all, we will create an Interface called IWidget and we will use this interface to build our UserControl. We will just inherit this to the UserControl and while exporting or importing we will use the same interface type. Reason behind this is to make sure only the specified type of control will be marked for MEF. If we have two different types for two different kind of controls, it will be easier for us to manage in the main screen. So, just create a blank interface named IWidget which will look like below: Now, in the MainPage.xaml add an ItemsControl & name it as “widgets”. Wrap the ItemsControl with a StackPanel to hold the items. The XAML file will look as below:

Now it’s time to create a UserControl. Right click on the Silverlight project and add one UserControl & name it as “EmployeeWidget”. We will not design more inside it as it is not require to understand the MEF. To make it properly visible just add one TextBlock with some strings. In our example, I am setting “Employee Widget” as the text string for the TextBlock and also setting a color “Red” to the Grid background. Resize the UserControl to 150 x 150, so that, it will set properly in the screen. Let’s see the below code for detailed layout:


As mentioned above, I resized the control to 150 x 150 and then changed the background color to Red. Added a TextBlock having “Employee Widget” as the value to the TextProperty of the TextBlock with a foreground color of White, so that, it will be visible on top of the Red color. No need to describe more on it. Just check the above xaml and you will get the idea behind it.

Press F7 in the EmployeeWidget.xaml page to open up the code behind file. Inherit the EmployeeWidget class from IWidget. Once done, add the attribute “Export” having the type of IWidget to the class. This will ensure that the class will export for the MEF to Satisfy. Look into the code here:


As our UserControl has been exported for the MEF to satisfy, it’s the time to import it in our MainPage. To do this, open the MainPage.xaml.cs and create a property “Widgets” of IWidget type array. We are using array type to ensure that, we can import many widgets there. So, mark the property with the atrribute “ImportMany” of type IWidget. Once that is done, our code is ready to import the exported class. Now inside your MainPage constructor, iterate through the array and add all the Widgets as the item to the “widgets” items control which we already added in the XAML. Now if you run your application, you will notice that the Widgets array is null. Why? Just think. Oh yea!!! We forgot to satisfy the MEF Initializer to satisfy the property. What to do for that? To satisfy the imports, you need to call “CompositionInitializer.SatisfyImports(this);” just before iterating through the array list. Have a look into the code:


Now, run your application once again and this time you will see the EmployeeWidget added to the UI screen with a text “Employee Widget” having a Red background. Here is the screenshot of the same:

image


Woho!!! Nice. We didn’t create the object of the UserControl and add it to the ItemsControl. The MEF framework did it for us. Once satisfied, it created the object and imported it to the MainPage.


That’s it. Now we will do one more thing. We will create another UserControl named “CustomerWidget” and follow the same steps mentioned above for exporting the control. This time we will set the text to “Customer Widget” and will set the background color to Green. This will make it easy for us to distinguish between the items. Here is the XAML code of the CustomerWidget usercontrol:


Now open the code behind file of CustomerWidget by pressing F7 in the xaml page and follow the same step as we did for the EmployeeWidget i.e. implement the CustomerWidget from the interface named IWidget and mark the class exportable by setting the Export attribute of the IWidget. Here is the code for your reference:


That’s it. This time we didn’t add/modify anymore code in our MainPage. Just run the application and you will see the CustomerWidget added in the panel along with the control named EmployeeWidget. See the screenshot of the same here:

image

So, what did we learn here? We learnt that without changing the original code, we can easily import any control with the help of MEF. It is very easy to plug something into our original application without doing any change in the main application. In such case, instead of updating the original application we can easily attach our feature like a plug-in. Hope, this article helped you to understand the basic functionality of MEF with the help of Silverlight. In my next article, I will show you more on MEF with the help of a Console Application. Till then keep learning about MEF & do your small small POCs to learn in depth. Please don’t forget to post your feedbacks and/or suggestions to improve this article. Appreciate your time for reading through this article

View the original article here



Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - September 3, 2010 at 7:54 pm

Categories: C#   Tags: First, guide, PartII, sample DragLeave in c#, silverlight, silverlight shared whiteboard

Right Click a TextBox and Display a ContextMenu using Silverlight 4

In versions prior to Silverlight 4, when you right clicked an UI Element, the events were handled by the Silverlight plug-in internally to display the Silverlight configuration dialog. In Silverlight 4, you now have the ability to right click an element and invoke a custom ContextMenu.

Silverlight 4 now adds support for MouseRightButtonDown and the MouseRightButtonUp events on all UIElements. The Silverlight Toolkit (April Release) also introduces the ContextMenu control to Silverlight developers.

In this article, we will see how to use the ContextMenu control released in the Silverlight 4 Toolkit

Display the ContextMenu on a TextBox by using the new Right-Click mouse event support in Silverlight 4

Access the clipboard programmatically (new in Silverlight 4) to do Cut, Copy and Paste operations on a TextBox Make sure you are using the latest Silverlight toolkit over here.

Let us get started

Step 1: Create a new Silverlight 4 application. Open VS2010 > File > New Project > Silverlight Application

View the Original article

Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - May 24, 2010 at 7:22 pm

Categories: ASP.NET   Tags: "silverlight 4 samples", "silverlight 4" "GroupBox Control", anoop madhusudanan, briefly about c# and c# tools, c sharp compiler download, c# compilers, C# keywords classified, Click, ContextMenu, develop in c# in windows98, Display, download C# compiler for windows xp, download different Types Of Compilers in C#, explain briefly about c# and c# tools, group box control in silverlight4, groupbox alternative silverlight, GroupBox with SilverlightToolkit 4, high volume wcf pollingduplex call, multiform application in C#.Net, Right, sample silverlight application imaging, scada silverlight, silverlight, silverlight 4 multilanguage, silverlight 4.0 whiteboard, silverlight DataPointSeries Mouse Event, Silverlight DICOM, silverlight dragEnter, silverlight dragEnter dragOver dragLeave example, silverlight emf, silverlight groupbox, silverlight groupbox 4.0, silverlight groupbox alternative, silverlight groupbox missing, silverlight scada wcf, silverlight toolkit "drag drop treeview", silverlight toolkit contextmenu example, silverlight toolkit dragenter event, Silverlight WCF polling duplex white board, silverlight4 GroupBox, silverlight4 multi-language, silverlight4 seo, Silverlight4 tif, SilverLight4ã??ColorPicker, sliverlight4 GroupBox, TextBox, Using, widgets +"silverlight 4", windows forum consumes silverlight duplex polling, www.silverlightconfiguration.net

TreeView Drag Drop in Silverlight

I have seen plenty of questions around drag-drop operations within a TreeView and I thought of dedicating a post to it. Now usually when one thinks of implementing a Drag Drop operation on a TreeView, there are a couple of events like the DragEnter, DragLeave, DragOver and Drop that are to be raised and handled.

In some cases, you must also cancel the drag-n-drop operation if the drop is invalid. Overall, this looks like a lot of work for a developer who wants to quickly implement drag-n-drop functionality on his/her controls.

With the addition of the drag-drop targets for controls like the TreeView (and some others like the ListBox, DataGrid and DataPointSeries), doing a drag and drop operation in a TreeView is a cakewalk.

View the Original article

Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - May 20, 2010 at 12:31 am

Categories: ASP.NET   Tags: anoop madhusudanan, high volume wcf pollingduplex call, sample silverlight application imaging, scada silverlight, silverlight, silverlight 4.0 whiteboard, silverlight DataPointSeries Mouse Event, Silverlight DICOM, silverlight dragEnter, silverlight dragEnter dragOver dragLeave example, silverlight emf, silverlight scada wcf, silverlight toolkit "drag drop treeview", silverlight toolkit dragenter event, Silverlight WCF polling duplex white board, Silverlight4 tif, TreeView, windows forum consumes silverlight duplex polling, www.silverlightconfiguration.net

A Simple approach to build a Silverlight 3.0/Silverlight 4.0 application that consumes a WCF Service

Silverlight has been around for quite some time now and I hope most of you who have been working on Silverlight 3.0, might have started migrating to Silverlight 4.0. As you are aware, Silverlight is now used for developing LOB applications where the requirement is to develop loosely coupled browser based applications using Silverlight.

One of the approaches here is to remove the dependency between Model  and View (UI) so that they can be developed and tested independent from each other. This article shows how to create a Silverlight application that consumes a WCF service keeping minimum dependencies between the Model and ViewNote.

This article does not use the MVVM approach as indicated earlier. Check out the MIX session by Laurent to know more about building MVVM applications  by visiting http://live.visitmix.com/MIX10/Sessions/EX14

In this article, I have used WCF service which is responsible for Database communication. You can use ADO.NET entity framework and ADO.NET Data service instead of writing data access code in WCF, but we will leave that to a different article.

Note: In this article I have used VS2010 RC, WCF 4.0 and Silverlight 4.0.Step 1: Open VS2010 and create a blank solution, name it as ‘SILV4_MVVM’.Step 2: To this solution, add a WCF application project, name it as ‘WCF_DataService’. Rename ‘IService1’ to ‘IService’ and ‘Service1.svc’ to ‘Service.svc’.Step 3: To this WCF Service project, add a new class and name it as ‘DbManager’.

This class will act as a Database communication class. Write the implementation of the class as shown below

View the Original article

Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - May 3, 2010 at 8:56 pm

Categories: ASP.NET   Tags: "silverlight 4 samples", "silverlight 4" "GroupBox Control", "visual c# express 2010" "service project", 3.0/Silverlight, anoop madhusudanan, application, approach, briefly about c# and c# tools, Build, c sharp compiler download, c# compilers, C# keywords classified, consumes, develop in c# in windows98, download C# compiler for windows xp, download different Types Of Compilers in C#, explain briefly about c# and c# tools, group box control in silverlight4, groupbox alternative silverlight, GroupBox with SilverlightToolkit 4, high volume wcf pollingduplex call, multiform application in C#.Net, sample silverlight application imaging, scada controls silverlight, scada silverlight, Service, silverlight, silverlight 4 multilanguage, silverlight 4.0 whiteboard, silverlight DataPointSeries Mouse Event, Silverlight DICOM, silverlight dragEnter, silverlight dragEnter dragOver dragLeave example, silverlight emf, silverlight groupbox, silverlight groupbox 4.0, silverlight groupbox alternative, silverlight groupbox missing, silverlight scada wcf, silverlight toolkit "drag drop treeview", silverlight toolkit dragenter event, Silverlight WCF polling duplex white board, silverlight4 GroupBox, silverlight4 multi-language, silverlight4 seo, Silverlight4 tif, SilverLight4ã??ColorPicker, Simple, sliverlight4 GroupBox, widgets +"silverlight 4", windows forum consumes silverlight duplex polling, www.silverlightconfiguration.net

Simple Databinding and 3-D Features using Silverlight in Windows Phone 7 (WP7)

Simple Databinding and 3-D Features using Silverlight in Windows Phone 7 (WP7) Windows Phone 7 (WP7) is the upcoming next generation Mobile Operating System by Microsoft.

Amongst the many features, one of the nice features is that it has support for Silverlight 4.0. So most of the new features like 3-D, Databinding etc. are now available on WP7. In this article I will explain the basic Databinding as well as 3-D feature on Windows Phone 7.

For development of WP7, you can use the VS 2010 Express 2010 for Windows Phone with the Windows Phone Developer Tools. You can get the installer from the following path:http://www.microsoft.com/express/Downloads/#2010-Visual-Phone

VS 2010 Express for WP7 gives you the IDE to develop WP7 apps. This also installs Silverlight 4.0 runtime and Silverlight 4.0 tools for VS 2010 (if VS2010 RC is previously installed on your machine). When you create a new Windows Phone application, you will get the following design layout:

View the Original article

Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - April 27, 2010 at 1:13 am

Categories: ASP.NET   Tags: (WP7), anoop madhusudanan, Databinding, Features, high volume wcf pollingduplex call, Phone, sample silverlight application imaging, scada controls silverlight, scada silverlight, silverlight, silverlight 4.0 whiteboard, silverlight DataPointSeries Mouse Event, Silverlight DICOM, silverlight dragEnter, silverlight dragEnter dragOver dragLeave example, silverlight emf, silverlight scada wcf, silverlight toolkit "drag drop treeview", silverlight toolkit dragenter event, Silverlight WCF polling duplex white board, Silverlight4 tif, Simple, Using, windows, windows forum consumes silverlight duplex polling, www.silverlightconfiguration.net

Axinom Announces AxCMS.net 10 with Microsoft Silverlight 4 and Microsoft Visual Studio 2010

Axinom, European WCM vendor, today announced the next version of its WCM solution AxCMS.net 10, which streamlines the processes involved in creating, managing and distributing corporate content on the internet. The new solution helps reducing ongoing costs for managing and distributing to large audiences, while at the same time drastically reducing time-to-market and one-time setup costs.

Axinom’s WCM portfolio, based on the Microsoft .NET Framework 4, Microsoft Visual Studio 2010 and Microsoft Silverlight 4, allows enterprises to increase process efficiency, reduce operating costs and more effectively manage delivery of rich media assets on the Web and mobile devices. Axinom solutions are widely used by major European online brands in IT, telco, retail, media and entertainment industries such as Siemens, American Express, Microsoft Corp., ZDF, Pro7Sat1 Media, and Deutsche Post.

Brand New User Interface built with Silverlight 4

By using Silverlight 4, Axinom’s team created a new user interface for AxCMS.net 10 that is optimized for improved usability and speed. WYSIWYG mode, integrated image editor, extended list views, and detail views of objects allow a substantial acceleration of typical editor tasks. Axinom’s team worked with Silverlight Rough Cut Editor for video management and Silverlight Analytics Framework for extended reporting to complete the wide range of capabilities included in the new release.

“Axinom’s release of AxCMS.net 10 enables developers to take advantage of the latest features in Silverlight 4,” said Brian Goldfarb, director of the developer platform group at Microsoft Corp. “Microsoft is excited about the opportunity this creates for Web developers to streamline the creating, managing and distributing of online corporate content using AxCMS.net 10 and Silverlight.”

Rapid Web Development with Visual Studio 2010

AxCMS.net 10 is extended by additional products that enable developers to get productive quickly and help solve typical customer scenarios. AxCMS.net template projects come with documented source code that help kick-start projects and learn best practices in all aspects of Web application development. AxCMS.net overcomes many hard-to-solve technical obstacles in an out-of-the-box manner by providing a set of ready-to-use vertical solutions such as corporate Web site, Web shop, Web campaign management, email marketing, multi-channel distribution, management of rich Internet applications, and Web business intelligence.

Extended Multi-Site Management

AxCMS.net has been supporting the management of an unlimited number of Web sites for a long time. The new version 10 of AxCMS.net will further improve multi-site management and provide features to editors and developers that will simplify and accelerate multi-site and multi-language management. Extended publication workflow will take into account additional dependencies of dynamic objects, pages, and documents.

“The customer requests evolved from static html pages to dynamic Web applications content with the emergence of rich media assets seamlessly combined across many channels including Web, mobile and IPTV. With the.NET Framework 4 and Silverlight 4, we’re on the fast track to making the three screen strategy a reality for our customers,” said Damir Tomicic, CEO of Axinom Group. “Our customers enjoy substantial competitive advantages of using latest Microsoft technologies. We have a long-standing, relationship with Microsoft and are committed to continued development using Microsoft tools and technologies to deliver innovative Web solutions in the future.”

Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - April 16, 2010 at 8:03 am

Categories: Press Releases   Tags: "msdn library" "visual studio 2010 express", "silverlight 4 samples", "silverlight 4" "GroupBox Control", "visual studio 2010" "pictures toolbar", "visual studio express 2010" debug, .tif silverlight visual basic, anoop madhusudanan, Axinom, briefly about c# and c# tools, c sharp compiler download, c# compilers, C# keywords classified, compilation c# express 2010, crystal report per visual studio 2010, crystal report visual studio 2010 review, crystal reports visual studio 2010 express, csc.exe command line compiler "studio 2010", csc.exe Visual Studio 2010, csharp whiteboard, develop in c# in windows98, download C# compiler for windows xp, download different Types Of Compilers in C#, explain briefly about c# and c# tools, faqs Visual Studio 2010, google scada imaging, group box control in silverlight4, groupbox alternative silverlight, GroupBox with SilverlightToolkit 4, high volume wcf pollingduplex call, multiform application in C#.Net, notepad editor in visual studio 2010, sample DragLeave in c#, sample silverlight application imaging, scada silverlight, show task list c# express 2010, silverlight, silverlight 4, silverlight 4 multilanguage, silverlight 4.0 whiteboard, silverlight DataPointSeries Mouse Event, Silverlight DICOM, silverlight dragEnter, silverlight dragEnter dragOver dragLeave example, silverlight emf, silverlight groupbox, silverlight groupbox 4.0, silverlight groupbox alternative, silverlight groupbox missing, silverlight scada wcf, silverlight shared whiteboard, silverlight toolkit "drag drop treeview", silverlight toolkit dragenter event, Silverlight WCF polling duplex white board, silverlight4 GroupBox, silverlight4 multi-language, silverlight4 seo, Silverlight4 tif, SilverLight4ã??ColorPicker, sliverlight4 GroupBox, Task List Howto In Vs 2010 Express, task list howto in vs2010 express, toolbar of crystal report on vs 2010, using crystal reports visual studio 2010, using csc with c# 2010 express, vc express 2010 command line, visual studio 2010, visual studio 2010 + FAQs, visual studio 2010 compiler, visual studio 2010 csc executed, visual studio 2010 express "task list", visual studio 2010 express C# dos compiler csc, visual studio 2010 express compile to exe, visual studio 2010 faq, visual studio 2010 rc performance editor sluggish, visual studio 2010 s sharp express line numbers, visual studio express 2010 compiler review, VS2010 boon for testers, where is command prompt visual c# express 2010, where is csc.exe c# 2010 express, why is intellisense unavailable in clr applications, widgets +"silverlight 4", windows forum consumes silverlight duplex polling, WINDOWS7 visual studio 2010 commandline compile Linq missing, www.silverlightconfiguration.net

Silverlight Introduction

This article will be very helpful for the beginners who want to know and start development on Silverlight projects, if you are already working on Silverlight you will find complete understanding of Silverlight Introduction. In this article I have started with definition of Silverlight, purpose of the Silverlight technology and different versions released so far. You will also see development tools required to work with Silverlight. End of this article you will get the complete introduction of Silverlight.

What is Silverlight? Silverlight is the new Microsoft technology on web platform for Rich Internet Applications (RIA) launched by Microsoft in 2007.Silverlight supports multiple browsers called cross-browser technology, which includes Internet Explorer, Firefox, and Safari, opera etc…Silverlight supports multiple Operating Systems called cross-platform technology, which includes Windows family of OS, Mac, and Linux with moonlight technology (Moonlight is an open source implementation of Silverlight, primarily for Linux and other Unix/X11 based operating systems).Silverlight is also supports multiple devices called cross-device technology, which include mobile devices to desktop browsers to 720p HDTV video modes etc…

Silverlight is a browser plug-in approximately 4MB in size, it is client side free software for easy and fast less than 10 sec one time installation available for any client side browsers.Silverlight supports the display of high-definition video files, and sending them over the Net. Silverlight applications are delivered to a browser in a text-based markup language called XAML. XAML is a declarative markup language that you can use to define the UI elements for your Silverlight-based application.Silverlight is considered as a competitor to Adobe’s flash technology.One of the design goals of the Silverlight technology is to fill the gap between windows application and web application in terms of creating Graphical User Interface (GUI). So far web developers were not able to make client happy in terms of UI, but now web developer will be able to full fill this with the help of Silverlight technology. Why Silverlight?

Here is the list of advantage why we should go with Silverlight over the Flash and other technologies already available: Support of .NET framework – if you are already .NET developer it is easy to start programming on Silverlight.Support of Managed code – you can write programming in your favorite language which .NET CLR supports like C#,VB.NET, Dynamic languages(IronPython, IronRuby).Better development tools -Visual Studio 2010, Expression Blend.Large community- available lot of learning resource as compare to Flash technology.Integration with Enterprise based technologies like WPF, LINQ etc…Silverlight releases

Silverlight 1.0

This is the first release of Silverlight technology in 2007. There are lot of releases happened in initial stage of Silverlight technology, however later at end of the year 2007 final release of version 1.0 got released. Originally this release was called WPF/E, which stands for Windows Presentation Foundation/ Everywhere. This release consists of the core presentation framework, which is responsible for UI, interactivity and user input, basic UI controls, graphics and animation, media playback and DOM integration.

The Major drawback of this release is not supporting managed code, which means you can’t use .NET supported programming languages for manipulating GUI elements. This was managed by scripting programming languages like Java Script (Only interpretation no compilation), which is hard for non Java Script programmers.

Applications are written either completely in XAML or in a mix of XAML and JavaScript with DOM (Document Object Model) to manipulate the user interface. Since there is no managed code there is no compilation required only JavaScript is interpreted on the client (browser).

Silverlight application starts by invoking the Silverlight control from the HTML page, which then loads up a XAML file. The XAML file contains a Canvas object, which acts as placeholder for other elements. Silverlight provides various geometrical primitives like lines, ellipses and other shapes, to elements like text, images, and media etc.

Silverlight Introduction

Silverlight 2.0

After Silverlight 1.0 there are preview releases to fix bugs from initial release and improved performance issues then released Silverlight 2.0 in March 2008. We can consider this is the first release of the Silverlight for start application development because of lot limitations in Silverlight 1.0 and was not ready for developing applications efficiently. This is the exciting release to the developers, which supports managed code, living in the .NET world without managed code is very difficulty (actually not possible ). Silverlight 2.0 supports .NET programming languages like C#, VB.NET to write business logic or manipulate UI Elements at client side. Silverlight 2.0 is based on .NET Framework 3.5.

You can have a code behind file for every XAML (.xaml) file like ASP.NET (.aspx) pages to handle the business logic. It can be used to programmatically manipulate both the Silverlight application and the HTML page which hosts the Silverlight control. The XAML markup as well as the code, is compiled into .NET assemblies which are then compressed using ZIP and stored in a .xap file.

In this release Silverlight came up with own library, which is subset of .NET framework’s Base Class Library this included controls, components, support of web services and LINQ API features. It is also provides security, not to access Silverlight platform API from outside the world.

Silverlight Introduction

Features of Silverlight 2.0: Rich base class library: – This is a compatible subset of the full .NET Framework. It supports Collection, Reflection, Regular Expressions, String Handling, Data Access, LINQ etc…
Powerful built-in controls: – These include verity of controls :

o Extensible control base classes
o Common controls: Textbox, Checkbox, Radiobutton, TabControl, Slider, ScrollViewer, ProgressBar, Calendar etc…
ayout controls: Grid, StackPanel etc…
ata controls:DataGrid, etc..
Advanced skinning and templating support: – This makes it easy to customize the look and feel of an application.
  Deep zoom: – which allows users to zoom into, or out of, an image (or a collage of images), with smooth transitions, using the mouse wheel.
  Networking support:- Out-of-the-box support allows calling REST, WS*/SOAP, POX, RSS and standard HTTP services, enabling users to create applications that easily integrate with existing back-end systems.
  Programming Languages:- including Visual Basic, C#, JavaScript, IronPython and IronRuby, making it easier for developers already familiar with one of these languages to repurpose their existing skill sets.
  Cross-platform and cross-browser support: – This includes support for Mac, Windows and Linux in Firefox, Safari and Windows Internet Explorer.
  Security: – Silverlight CoreCLR uses an attribute-based security model, as opposed to the Code Access Security (CAS) model of the desktop version of .NET Framework.

Silverlight IntroductionSilverlight 3

Silverlight version 3.0 was release in July 9, 2009, which is an extension to Silverlight 2.0 and mainly provides improvements in graphics capabilities, media management, application development areas (additional controls, enhanced binding support, and out-of-browser functionality), and integration in the designers’ Expression Blend 3 tools.

Features of Silverlight 3.0: Improved graphics capabilities to support a richer and more interactive user interface

-> Support for 3D graphics
-> Animation
-> Pixel Shaders
-> Theme application support
-> Enhanced control-skinning
-> Improved text rendering
-> Bitmap APIs
  Enhanced media management supporting high-quality and secured multimedia streaming

-> Support for new media formats
-> IIS Media Services-> Silverlight DRM for media streaming
  Empowers developers to develop data-rich and media-rich interactive RIAs.

-> New networking APIs (new offline APIs Out-of-Browser functionality )
-> Silverlight 3 SDK
-> New FormsXAML controls
-> New DataManipulationXAML controls
-> New ContentXAML controls
-> Other user interface framework improvements
-> Search Engine Optimization (SEO)Silverlight 4.0

Silverlight version 4.0 beta was release on November 18, 2009, at the Professional Developers Conference in Los Angeles, Microsoft Corp.

Features of Silverlight 4.0 beta:

Silverlight Introduction

Development tools Visual Studio 2008 SP1: – Visual Studio provides productivity tools for developing applications using managed code. All the existing features of Visual Studio are available for Silverlight. In addition, this version of Visual Studio includes Silverlight-specific features, including IntelliSense, debugging, and Silverlight project templates that create and link all required files. http://www.microsoft.com/downloads/details.aspx?familyid=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
  Microsoft Expression Blend: -This tool can be used to create and modify the presentation layer of an application by manipulating the XAML canvas and controls, working with graphics, and programming the presentation layer with a dynamic language such as JavaScript. http://www.microsoft.com/downloads/details.aspx?FamilyID=e82db5e2-7106-419e-80b0-65cce89f06bb&displaylang=en
  Install Deep Zoom Composer: – This tool allows you to prepare your images for use with the Deep Zoom feature in Silverlight 3. http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=457b17b7-52bf-4bda-87a3-fa8a4673f8bf
  Download Silverlight Toolkit: -This Toolkit is a Microsoft project containing Silverlight controls, components and utilities that can be downloaded and used in your Silverlight applications. It includes full source code, samples and tests. http://silverlight.codeplex.com/releases/view/36060
  Download .NET RIA Services: – Microsoft .NET RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. The RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. http://silverlight.net/getstarted/riaservices/Silverlight vs. Flash

Adobe Flash is the most popular competitor to Silverlight both supports browser plug-in and enables execution of rich content for the Web. Flash is not the new technology, which is already having long life span as compared to Silverlight. But it does not have huge community as expected; it may be cause of limited development tools, which are not kwon to most of the developers. Flash uses ActionScript as programming language and Flex as programming environment, which most of the developer are far from these technologies.

For ASP.NET developers to extend their websites using flash content is not so simples, they need to learning development environment as mentioned above like ActionScript and Flex, apart from that there is no way to generate Flash content using server-side .NET code, which means it’s difficult to integrate ASP.NET content and Flash content.

Silverlight aims to give .NET developers a better option for creating rich web content. Silverlight provides a browser plug-in with many similar features to Flash, but one that’s designed from the ground up for .NET. Silverlight natively supports the C# language and uses a range of .NET concepts. As a result, developers can write client-side code for Silverlight in the same language they use for server-side code (such as C# and VB), and use many of the same abstractions (including streams, controls, collections, generics, and LINQ).
  S.No.

View the Original article

Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - March 9, 2010 at 1:35 am

Categories: Programming   Tags: anoop madhusudanan, briefly about c# and c# tools, c sharp compiler download, c# compilers, C# keywords classified, develop in c# in windows98, download C# compiler for windows xp, download different Types Of Compilers in C#, explain briefly about c# and c# tools, high volume wcf pollingduplex call, Introduction, multiform application in C#.Net, sample silverlight application imaging, scada silverlight, silverlight, silverlight 4.0 whiteboard, silverlight DataPointSeries Mouse Event, Silverlight DICOM, silverlight dragEnter, silverlight dragEnter dragOver dragLeave example, silverlight emf, silverlight scada wcf, silverlight toolkit "drag drop treeview", silverlight toolkit dragenter event, Silverlight WCF polling duplex white board, Silverlight4 tif, windows forum consumes silverlight duplex polling, www.silverlightconfiguration.net

Learnxpress introduces ImageGear for Silverlight

ImageGear for Silverlight v17 is the most advanced way to create, control, and deliver more secure, high-quality imaging applications. Using ImageGear, you can easily add powerful imaging capability to your applications. ImageGear supports all of the most commonly used graphics file formats and many more, providing complete compatibility when developing Silverlight solutions.

Accusoft ImageGear for Silverlight demo is running in the cloud! It shows how you can build a rich viewing interface that’s highly portable, displays many image types, including PDF, TIFF, and JPEG2000, and supports annotations. All running on the brand new Microsoft Azure cloud computing platform.

  • Two new WPF and Silverlight annotations, especially valuable for medical image viewing: Protractor & Ruler
  • Reduce memory usage while printing high resolution images

These Release Notes provide basic information about ImageGear to get you started quickly and direct you to any other resources you may need.  For the latest release notes and other ImageGear documentation, go to http://www.accusoft.com/documentation.htm.

The ImageGear for Silverlight documentation provides detailed information about all of the features. The following ImageGear for Silverlight Namespaces are available:

ImageGear.Core

ImageGear.ART

ImageGear.ART.Windows.Controls

ImageGear.Display

ImageGear.Formats

ImageGear.Formats.DICOM

ImageGear.Formats.EXIF

ImageGear.Formats.IPTC

ImageGear.Formats.JPG

ImageGear.Formats.TIF

ImageGear.Formats.XMP Namespaces

ImageGear.Processing

ImageGear.Processing.ImageClean

ImageGear.Processing.Layers

ImageGear.Silverlight.UI

ImageGear.Windows.Controls

Visit http://www.accusoft.com/resourcecenter/documentation/ImageGear-Silverlight/v17.1/ReleaseNotes/index.htm for more information.

Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - February 17, 2010 at 12:41 am

Categories: Silverlight   Tags: anoop madhusudanan, briefly about c# and c# tools, c sharp compiler download, c# compilers, C# keywords classified, develop in c# in windows98, download C# compiler for windows xp, download different Types Of Compilers in C#, explain briefly about c# and c# tools, high volume wcf pollingduplex call, imagegear, learnxpress, link:ROOVaVwgdXMJ:www.managednetworks.co.uk/, microsoft, multiform application in C#.Net, sample silverlight application imaging, scada silverlight, silverlight, silverlight 4.0 whiteboard, silverlight DataPointSeries Mouse Event, Silverlight DICOM, silverlight dragEnter, silverlight dragEnter dragOver dragLeave example, silverlight emf, silverlight scada wcf, silverlight toolkit "drag drop treeview", silverlight toolkit dragenter event, Silverlight WCF polling duplex white board, Silverlight4 tif, windows forum consumes silverlight duplex polling, www.silverlightconfiguration.net

Facebook with Microsoft Silverlight

Microsoft has created a sample client application for facebook. Developed using Silverlight 4 Beta, it has a great user interface and inherits all the core features of facebook into your desktop.

Read more…

Be the first to comment - What do you think?
Posted by Anand Narayanaswamy - January 26, 2010 at 6:15 am

Categories: Channels, News, Silverlight   Tags: "visual studio 2010" "pictures toolbar", anoop madhusudanan, briefly about c# and c# tools, c sharp compiler download, c# compilers, C# keywords classified, develop in c# in windows98, download C# compiler for windows xp, download different Types Of Compilers in C#, explain briefly about c# and c# tools, facebook, high volume wcf pollingduplex call, microsoft silverlight, multiform application in C#.Net, sample silverlight application imaging, scada silverlight, silverlight, silverlight 4, silverlight 4.0 whiteboard, silverlight DataPointSeries Mouse Event, Silverlight DICOM, silverlight dragEnter, silverlight dragEnter dragOver dragLeave example, silverlight emf, silverlight scada wcf, silverlight toolkit "drag drop treeview", silverlight toolkit dragenter event, Silverlight WCF polling duplex white board, Silverlight4 tif, windows forum consumes silverlight duplex polling, www.silverlightconfiguration.net

Nevron .NET Vision 2010 Released

Nevron Software, the global leader in component based data visualization technology, announces the official release of Nevron .NET Vision 2010 Vol.1. Among the many new features and improvements, the release adds vector export capabilities to PDF, Flash, Silverlight (XAML) and EMF formats.

Together with the already supported SVG vector export, the components in the new Nevron .NET Vision suite are now uniquely positioned to offer support for both Rich Internet Applications (RIA) and printed media support inside a single and consistent API. This makes it possible to create complex BI dashboards, SCADA interfaces, workflows, org charts etc. that would meet the diverse media requirements of today’s enterprises.

The leading .NET charting component has also been extended to provide built-in support for the visualization of large data sets. Embedded in the component are advanced multithreaded clustering and sampling algorithms, which allow you to visualize datasets with hundreds of thousands of data points.  The leading .NET diagramming framework now automatically leverages the power of multi-core processors, by using multiple threads to perform complex layouts faster. WinForm controls embedding is a new exciting feature, which makes it possible to create complex interfaces that blend diagrams with existing WinForm controls.
All components in the suite are now fully localizable.

"This major release strengthens the unique position of the Nevron .NET Vision suite on the data visualization market, by allowing enterprises to consolidate their dashboards and diagram development efforts around a single .NET solution that empowers them to consistently generate content for the diverse world of RIA and printable vector formats." says Ivo Milanov, CTO of Nevron Software LLC. "Together with the new multithreading improvements, advanced sampling and clustering and the fast adoption of our Reporting Services and SharePoint product lines, today Nevron is one of the few companies that provide enterprise-grade data-visualization solutions for both developers and IT professionals alike."

For more details on the latest release, take a look at: What’s New in Nevron .NET Vision 2010 Vol.1

Download a fully-functional free evaluation today: http://www.nevron.com

About Nevron Software

Nevron Software is a global leader in component based data visualization technology for a diverse range of Microsoft centric platforms. Built with perfection, usability and enterprise level features in mind, our components deliver advanced digital dashboards and diagrams that are not to be matched. Today Nevron components are used by many Fortune 500 companies and thousands of developers and IT professionals worldwide. Designed by professionals for professionals, Nevron Data Visualization technology delivers rich functionality with exceptional features to your Presentation, Scientific, Financial and Business Intelligence applications.

1 comment - What do you think?
Posted by Anand Narayanaswamy - January 18, 2010 at 5:28 am

Categories: .NET, ASP.NET, Channels, Press Releases   Tags: .tif silverlight visual basic, 2010, csharp whiteboard, europe, free component, free control, google scada imaging, microsoft, nevron .net vision, pdf, sample DragLeave in c#, silverlight, silverlight shared whiteboard, toolbar of crystal report on vs 2010

Next Page »