Silverlight Controls – The path to reusable XAML

14 באוגוסט 2007

Silverlight is like the wild wild west.Everyone code however they want, Every new discovery is like virgin territory and everything has that new car smell.     Most samples of Silverlight out there today are procedural based and not Object-Oriented.We're all so wrapped up in making shiny snazzy samples that we forgot those weird alien like  concepts "Don't repeat yourself" and "Blob"/"Big Hairy Object"/"God object". Don't Repeat Yourself (DRY, also known as Once and Only Once) is a process philosophy aimed at reducing duplication, particularly in computing. The philosophy emphasizes that information should not be duplicated, because duplication...
6 תגובות

Silverlight 1.0 full Javascript Intellisense

1 באוגוסט 2007

Everything we do here today is recorded in a 40 minute Webcast available at: mms://ttvv.tv/users/publicftp/justinangel/intellisense.wmv   Let's create a new Silverlight 1.0 project in Expression Blend 2 August preview, change the background color of our first page to "LightGreen" and draw a small rectangle. This is how our XAML file looks like right now: <Canvas     xmlns="http://schemas.microsoft.com/client/2007"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Width="640" Height="480"     Background="#FF90EE90" <-- LightGreen     x:Name="Page" <-- Name of Canvas     >       <Rectangle x:Name="myRectangle" Width="240" Height="144" Stroke="#FF000000" Canvas.Left="200" Canvas.Top="144"> <-- Small Rectangle     </Rectangle> </Canvas> This basic XAML file has a Canvas and a rectangle on...
6 תגובות