Apr
17
2008
In silverlight you can easily add images thru the XAML or the classes (ie: c#)
To add it thru the XAML all you have to write is this:
<img Source="Picture.jpg" x:Name="MyImage" VerticalAlignment="Bottom" />
Here is the whole code:
<usercontrol x:Class="SilverlightApplication1.Page"></usercontrol>xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<grid Background="White" x:Name="LayoutRoot"></grid>
<img Source="Picture.jpg" x:Name="MyImage" VerticalAlignment="Bottom" />
<button Content="Hello World!!" Width="200" Height="50" Click="onButtonClick" Background="Aquamarine" x:Name="test"></button>
You can see a demo here: demo
Next I will explore a third party class TWEENER, that works very similar to the TWEENER class build for ActionScript.
Mar
31
2008
When people hear Flex, they inmediately think about file size, and in my experience a Flex project starts to get heavy when you add components and when you use MXML. Flex lets you create two types of projects:
- Actionscript-only
- MXML
When creating actionscript only project, the file size is the same or smaller it would be if you were using flash.
I think that for the types of projects I am creating, I don't have much use for MXML, since I am not using any build-in components. Also all MXML is converted by the compiler to AS3 code.
It seems that there are some functionalities that are somewhat tied to MXML, for example when using Webservices in FLEX3 in an actionscript-only project, the compiler expects "ResourceManagerImpl" to be instantiated, this is done automatically when you create a MXML project, so when creating an actionscript-only project, you have to do it manually. This is a bug in Flex3.0 (http://bugs.adobe.com/jira/browse/SDK-12205), it will be fixed in the next release of the flex 3 sdk.
Mar
28
2008
I, like many of you, have been developing RIAs since before they were called that, yet only in the past few years, have I stopped to try to understand computers. I do not have a degree in Compsci, but I have realized recently why it is in my best interestes to pursue one. Everything I know about programming I have taught myself.
As programmers, we often forget-or don't know yet know-about the way computers interpret our commands, instead focusing on the tasks we need to accomplish. Indeed, our day is filled with adding more and more code to fix bugs or create new content in a program already bulging at the seams.
I suggest that as programmers it is really our duty to make the program as efficient as possible; a lean, mean fighting machine! As I being to attend classes, I intend to log and comment on my experiences, and how it is affecting the way I program. My first classes begin this fall-Precalculus and Java I-so expect to see more from me soon!