Tuesday, February 28, 2012

Sending large strings from Silverlight to WCF

So, recently I tried to send a string from Silverlight to a WCF service. I following the whole bible, created a nice service, generated a client and could retrieve data via the service.

However, I kept getting a Error Not Found while I was sure everything was correctly set up!

 
Read More from: Original Source

Monday, February 27, 2012

Multi Select ComboBox in Silverlight

Need a way to use the combo box of silverlight which has check boxes and user can select multiple options from the combo box.

When I came across this requirement to implement the multi selection in combo box the first thing which I have done which many of the developer do is to search on the Google for possible solution.The solution which I found is from thestack over flow, here you can see it has give complete code and you can easily implement it. But here in my post I have changed some of the code but the the user control which is inherit from combo box. I will explain you where I have modified the code as I discuss it.
The main application which I have used for this is shown in image 1 here you can see a combo box control which is used for multiple selection and a data grid control which filter records based on the selected item from combo box. In this test application I am using the customer xml to show the records in the data grid control and I have get the countries names in the combo box control so that user can select country or countries to filter out the records in the data grid control.

Sunday, February 26, 2012

Construct XAML Forms at Runtime with Resource Files

WPF makes it very easy to load non-executable resources at run time -- including a complete UI in XAML. Here's how to leverage that functionality to create applications that you can customize without recompiling.

Sometimes different users need different UIs, or different sites where your application is installed need different UIs. You could add a bunch of logic that makes controls visible or invisible as needed (and best of luck testing that). Or you could just load the UI that your user or site needs.

The Last Silverlight Post – Coming Out of the Closet

The intended audience of the book 'Hacking Silverlight' was primarily the seasoned professional Silverlight developer who has one or more Web 2.0 projects under their belt. Designed to help that developer connect with the larger Silverlight community and get access to all the knowledge and resources available to you. If that is you, this article can help you take your 'understanding' of Silverlight skills to the next level and not in what you can do but in what happened to Silverlight.

Read More from: Original Source

The Last Silverlight Post – Coming Out of the Closet

Programmatically uninstalling Silverlight Out-Of-Browser Application

Programmatically uninstalling Silverlight Out-Of-Browser Application - by Sergio Loscialo

Every once in a while there comes a need to provide a mechanism to uninstall your application programmatically. For Silverlight Out-Of-Browser applications , there seemed to be no way to accomplish it. Fortunately, there's a work-around that trusted OOB applications running in Windows can use.

Silverlight OOB applications are launched via the "sllauncher.exe" command. And if you open the properties on an OOB shortcut, you will see a target textbox with something like this.

Read More from: Original Source

Wednesday, February 22, 2012

Adobe Flash v11.2 and Above Will Only Be Available For Chrome Browser on Linux

Adobe announced that the Flash player for Linux will only be available for Google Chrome browser on Linux and has announced their plans to abandon future updates of Flash player for Linux. From the blog post:

For Flash Player releases after 11.2, the Flash Player browser plugin for Linux will only be available via the "Pepper" API as part of the Google Chrome browser distribution and will no longer be available as a direct download from Adobe. Adobe will continue to provide security updates to non-Pepper distributions of Flash Player 11.2 on Linux for five years from its release.

One can safely assume that Adobe wants to kill Flash on Linux for all other browsers except Google Chrome.

Tuesday, February 21, 2012

Carousel Effect in Silverlight

The application consists of a main page with a revolving carousel of thumbnails. When the user passes the mouse over any of the revolving thumbnails, the animation stops and sets the current thumb nail as the background of the application. There are sliders provided that can speed up or slow down the revolving of the thumb nails, change the axis of revolution and bring the revolving thumb nails closer or farther from the viewer. The right side of the application has one thumb nail that helps in understanding the effect in depth.

Sunday, February 19, 2012

Optimizing C# for XAML Platforms

When working with the C# development language, individual developers often find a process that works for them and stick to it. After all, if the code passes all our tests, we can ship it, right? Well, no. Releasing products in today's complex programming landscape isn't that simple. We think developers need to revisit some of the standard decisions we make about Extensible Application Markup Language (XAML) concepts such as dependency properties, LINQ and the layout system. When we examine these aspects from a performance perspective, various approaches can prove questionable.

By exploring dependency properties, LINQ performance and the layout system through some code examples, we can see exactly how they work and how we can get the best performance out of our applications by rethinking some common assumptions.

Read More from: Original Source
 

Wednesday, February 15, 2012

Telerik JustDecompile Announced

Telerik JustDecompile is a free decompiler tool from Telerik. It is free and it will be always free


On 15 the February Telerik announced newly built decompilation engine JustDecomiple. It helps you to browse .Net assembly and decompile .Net code.

You can download it from here

What makes JustDecompile different ?

  • Simple to Use – JustDecompile is simple to use and the UI is highly intuitive. So you can decompile and browse .NET assemblies with a single click. 
  • Creates Visual Studio Projects – JustDecompile can create a Visual Studio project from a decompiled assembly. So you'll never lose another project.
  • Easy Assembly Management -  JustDecompile quickly loads the core framework assemblies for .NET 2, .NET3.5, .NET 4, and Silverlight, so loading the assemblies you want to browse is simple. 
  • Searchability – JustDecompile can decompile .NET assemblies to VB.NET, C# and MSIL. 

Working with Telerik JustDecompile

To work with JustDecompile you need to drag and drop an assembly


You can see above I dragged an assembly Calculator.dll and JustDecompile helping me to decompile that. I strongly recommend to go ahead download this free tool and play around to increase your productivity.