This is the second blog post in a series of three posts comparing Flex with Silverlight. In my previous post I demonstrated how to integrate a scaffolded Rails application with Silverlight. Here I will be showing the same with Flex. The steps needed to create the Rails application are also mentioned here.
Creating a new Flex project:
Open Flex builder and create a new Flex project.
Leave all the options to default and click Finish. A blank project is now created for you.Read Full Post | Make a Comment ( 5 so far )
In this post I will be showing a really simple example of creating a Silverlight frontend for a Rails backend. This is what I think will be a three part series comparing Silverlight with Flex.
The steps will be:
- Creating a Rails application.
- Creating a frontend for it in silverlight.
- Creating a frontend for it in Flex.
- Comparing the approaches taken in both the frontends.
I will try to keep changes in the backend Rails application to a minimum.Read Full Post | Make a Comment ( 4 so far )
This link reports that Silverlight is now also available on the Nokia mobile devices (specifically S60 on Symbian OS, as well as for Series 40 devices and Nokia Internet tablets).
It seems really strange that silverlight wasn’t ported to window mobile devices first. There is a version available for window mobiles as well. I hope it is better than flash lite which really sucks.
If the performance of Silverlight is anywhere near flash then it could be a huge success for Microsoft as .Net as a development platform is already very popular and developers can use their existing skills to create better web experiences. Also IronPython and IronRuby (two of the Silverlight programming languages) are much better (and faster?) languages than Actionscript and .Net provides a much bigger library set.Read Full Post | Make a Comment ( 2 so far )
Let me first explain what is WPF?
WPF is the graphical subsystem if the .NET 3.0 framework and it is there to take the place of window forms which we used with earlier versions of .NET
So what’s so great about WPF?
Actually WPF is has its roots in DirectX API so you can easily create 2D and 3D interfaces in it without putting ant load on the processor. Also it is vector based and stores the information for the generating the UI in separate XAML files. So we have logical separation of a control from its appearance.
Further details: http://en.wikipedia.org/wiki/Windows_Presentation_Foundation
The following are the requirements for running this example:
- rubyclr gem. Use gem install rubyclr -y
- .NET framework 3.0
In this example I will creating a creating a textarea along with a button, trapping the events on the button and logging it inside the textarea .
Here is the code for the xaml file. Store this file with filename ui.xaml. This file contains the UI for the application.
Next I will be creating the codebehind file in ruby. Here in this file we have all the application logic. Save this file as logic.rb.
The code given above explains itself.
We are first loading the ui.xaml file and then finding the two controls in the lines 8, 9.
Then the three event handlers are declared in lines 11, 14, 19. So whenever the mouse events are fired the corresponding event if traced into the textbox.