Category Archives: z Silverlight Archives

Did You Know… That Canvas has a default width and height of 0?

If you don't specify otherwise, the Canvas object has a height of 0, a width of 0 and a background of null. It turns out that this has some very profound effects that I will explore in this and the … Continue reading →

Posted in z Silverlight Archives | Comments Off on Did You Know… That Canvas has a default width and height of 0?

Did You Know That… if you want your Silverlight control to have a transparent background, you must set isWindowless to true

As noted in an earlier Tip of the Day, typically you do not want a windowless Silverlight control, as there is a high performance price in rendering windowless controls. However, if you wish to set the background to be transparent, … Continue reading →

Posted in z Silverlight Archives | Tagged | Comments Off on Did You Know That… if you want your Silverlight control to have a transparent background, you must set isWindowless to true

Did You Know That… there are sites that can help you find the best articles on Silverlight

In his seminal work, The Wisdom of Crowds, financial journalist James Surowiecki notes that large numbers of people can often provide better or more reliable information in the aggregate than any member of the crowd can as an individual. The … Continue reading →

Posted in z Silverlight Archives | 2 Comments

Programming C#3.0 (LINQ, VS 2008, .NET 3.5)

Programming C# 3.0 (Programming) by Jesse Liberty, Donald Xie Read more about this title… I'm incredibly proud and pleased to announce the release of the fifth edition of Programming C#. C#3.0 represents a significant maturation of the C# language adding … Continue reading →

Posted in z Silverlight Archives | Tagged , | 1 Comment

Did You Know That… you can retrieve a reference to the Silverlight control using GetHost()

In many examples you will see the Silverlight control passed into handleLoad as the plugIn parameter, and stored as a member variable, handleLoad: function(plugIn, userContext, rootElement) { this.plugIn = plugIn; This is typically done so that you can use the … Continue reading →

Posted in z Silverlight Archives | Comments Off on Did You Know That… you can retrieve a reference to the Silverlight control using GetHost()

Did You Know That… you can create Silverlight objects programmatically?

In both Silverlight 1.0 and Silverlight 2.0 it is possible to create Silverlight objects programmatically, in the former using JavaScript and in the latter using, for example, C#. Creating objects programmatically in Silverlight 1.0 is non-trivial, as demonstrated in this  How … Continue reading →

Posted in z Silverlight Archives | Tagged , | Comments Off on Did You Know That… you can create Silverlight objects programmatically?

Did You Know That… the content property is not the content inside the XAML element?

In a previous Tip of the Day, I talked about using the content property of the Silverlight control (plug-in). Previous documentation suggested that other XAML objects also have a content property, that is the content within the XAML element, as … Continue reading →

Posted in z Silverlight Archives | Tagged | Comments Off on Did You Know That… the content property is not the content inside the XAML element?

The Silverlight Fire Starter tutorial lectures are now available

Silverlight Fire Starter is a one day event introducing Silverlight to both developers and designers The original Fire Starter presentations given at the Redmond campus are now available for viewing or downloading at Mix University The presentations include An introduction … Continue reading →

Posted in z Silverlight Archives | Comments Off on The Silverlight Fire Starter tutorial lectures are now available

Did You Know That… the Silverlight object has properties, methods and events and a sub-object called content

It is useful to think of the Silverlight object as having its own object model. Within that object model, some properties, methods and events are directly accessible, such as onError,  Settings,  Source, InitParameters and CreateObject. In addition, the Silverlight object … Continue reading →

Posted in z Silverlight Archives | Comments Off on Did You Know That… the Silverlight object has properties, methods and events and a sub-object called content

Did You Know That… there are numerous ways to find an object inside a Silverlight control

Is very common to need to access a Silverlight element programmatically. There are numerous ways to do so. Assuming you have named your element as shown here <Rectangle Name="myRect" Width="100" Height="44" Canvas.Left="0" Canvas.Top="10" StrokeThickness="2" Stroke="Black" /> One very simple way … Continue reading →

Posted in z Silverlight Archives | Comments Off on Did You Know That… there are numerous ways to find an object inside a Silverlight control

Did You Know That… Type Converters allow you to use property attributes in Complex Types

There are two ways to add attributes to any element in Silverlight: property attribute syntax, which takes a string Property elements   Silverlight provides a number of built-in type converters to allow you to use the simpler property attribute syntax, … Continue reading →

Posted in z Silverlight Archives | Comments Off on Did You Know That… Type Converters allow you to use property attributes in Complex Types

Drag And Drop put to work

I received a quick thank you note from Cal Schrotenboer recently about my video on drag and drop, noting that he had incorporated it into his CodeProject article describing his Silverlight application I took a look at his extraordinary article … Continue reading →

Posted in z Silverlight Archives | Comments Off on Drag And Drop put to work