LA.NET [EN]
Ramblings about C#, .NET and Programming
Browse by Tags
All Tags
»
Silverlight
(
RSS
)
ASP.NET
Gadgets
Trivia
WCF
XAML
XAML: what about events?
Thu, Nov 19 2009 12:54
A friend of mine asked me about events and XAML: can we setup event handlers in XAML? And the answer is, yes, you can. Here’s a quick example of how you can handle the click event of a button: < Button Click = "Button_Click" ></ Button > And yes, you must define the Button_Click method in your code-behind file (note that you could do it...
Read More...
How to build types that can be consumed from XAML
Thu, Nov 19 2009 10:32
Now that you know how to use custom types in XAML, you might be wondering if there are any thing you should keep in mind when designing new types that should be consumed from XAML. I’ve already said before that collection properties need to have a getter that return a valid instance of an object. But there’s more. Here are a few things you should consider when...
Read More...
Associating XAML namespaces to CLR namespaces
Thu, Nov 19 2009 10:10
Take a look at the following (simple) XAML: < UserControl x : Class = "SilverlightApplication1.MainPage" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns : x = "http://schemas.microsoft.com/winfx/2006/xaml" > < Canvas x : Name = "myCanvas" > </ Canvas > </ UserControl > When...
Read More...
XAML languages features
Wed, Nov 18 2009 15:15
As I’ve said before, Silverlight supports only a subset of the existing XAML keywords you can use in WPF. Here’s the list of keywords you can use in your Silverlight: x:Class: you can apply this attribute to the root element of the XAML file (or object tree) that is going to be “compiled”. When you apply this attribute, you’ll end up creating a partial class...
Read More...
XAML and collections
Wed, Nov 18 2009 12:13
We’ve already talked about several features related to XAML. In this post, we’ll keep going and we’ll see how to specify collections in XAML. There are two basic types of collections you can use in XAML: lists and dictionaries. Before going on, it’s important to understand that you’re not really creating new collections in XAML; instead, we’re adding items to...
Read More...
Type converter on Silverlight
Wed, Nov 18 2009 11:09
Today we’ll talk a little bit about the role played by type converters in “transforming” XAML into C# objects. Here’s a quick example: < Button xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns : x = "http://schemas.microsoft.com/winfx/2006/xaml" x : Name = "bt" Click = "bt_Click" Width = "100"...
Read More...
XAML: using content properties
Tue, Nov 17 2009 12:06
In the previous post , we’ve seen that we can use one of two approaches for setting the value of a property: we can use the property element or the attribute syntax (and, as we’ve seen in the previous post , you can’t use them both interchangeably). In this post , we’ll keep going and we’ll see how content properties simplify even more the markup we need to write...
Read More...
XAML and property elements
Tue, Nov 17 2009 10:20
In the previous post , we’ve started looking at same basic XAML. At the time, we’ve defined a simple button by using the following syntax: < Button xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns : x = "http://schemas.microsoft.com/winfx/2006/xaml" x : Name = "bt" Content = "Say hi" Click =...
Read More...
Introducing XAML
Mon, Nov 16 2009 21:16
You can’t really do it any other way: we must understand XAML before going on (at least, its basic features). In this post, we’ll start looking at XAML and at how we can use it to define the UI of our Silverlight user controls. So, the big question: what is XAML? To me, XAML (which, btw, means Extensible Application Markup Language) is a declarative language...
Read More...
Getting started with Silverlight
Mon, Nov 16 2009 11:08
Last Friday, I’ve decided to start looking at Silverlight . This time, I’ve opted for starting with a book (generally, I prefer to go through the source code and run some tests along the way;). As usual, I’ll be writing a couple of posts to describe my experiences with this platform. Even though I don’t have much to say yet, I thought I’d better start writing...
Read More...
Silverlight 3 is out
Thu, Jul 9 2009 21:32
Incredible… version 3 is out and I still didn’t had the time to look at version 2. I guess I’ll jump write into 3 (or 4, if things keep going this way :) ). btw, here’s the link for the VS tools .
Read More...
Silverlight 2.0 is out
Tue, Oct 14 2008 15:38
I’ve just seen this on Scott Hanselman’s blog . I’ll make an effort to look at it, though I’m still not convinced about it…
Read More...
Silverlight 2 RC is out
Sun, Sep 28 2008 14:40
I was keen on Silverlight more than a year ago, but unfortunately I've stopped studying it since I just had to work in other areas. It seems like now is the time to pick up where I left since Scott has announced the release of SL 2.0 R.
Read More...
Silverlight 2.0 beta 1 is out
Wed, Mar 5 2008 22:30
So, while I was busy playing with my new HTC Touch , it seems like MS has presented Silverlight 2.0 beta 1 . Now, this is really a tough choice...
Read More...
Xaml and Media controls: giving them a new chance
Tue, Nov 20 2007 21:35
A long (long) time ago I've downloaded one of the ASP.NET future CTPS and was really annoyed with the Xaml and Media controls. Why? simple: they injected object tags on the page instead of generating JS code to perform those operations. The problem: you got one of those nasty "click to activate" messages when the page was hosted on IE. Now that...
Read More...
Hebrew and Arabic Silverlight support
Sat, Oct 27 2007 22:24
Justin-Josef has built a new codeplex project that aims to support Hebrew and Arabic text rendering on Silverlight. There are already some support materials over Justin's site that will help you get started: online lab and demo 20 min, web cast complete tutorial Nice work Justin!
Read More...
Configuring IIS for hosting Silverlight 1.1
Fri, Sep 28 2007 19:41
From time to time there's always a new post asking on how to configure IIS to host Silverlight content. I've already written something about it, but I'd like to point you to a more complete reference which can be found here: http://silverlight.net/forums/t/479.aspx
Read More...
Silverlight pages and VS integration
Tue, Sep 25 2007 23:01
Have you noticed that you can navigate from the "code-behind" file (cs file) to the designer by right clicking the page and choosing "View designer" (from the context menu that is shown when you perform right click), but there's isn't any option for going from the xaml page to the cs code file associated with it? am I blind?
Read More...
How to share code between Silverlight and other kinds of applications?
Tue, Sep 25 2007 21:47
I really haven't looked at any Silverlight code for at least 2 months. In fact, I haven't really been around the forums until today. Now that I've returned :), I've noticed that there's a lot of similar questions around sharing code between .NET and the "mini-CLR" that is used Silverlight. The first thing you should notice is that...
Read More...
Silverlight: understanding namescopes
Fri, Aug 17 2007 15:37
Today i was starting to write about silverlight namescopes but then I've found this cool post which talks about most of the things i was writing about. btw, i'd just like to add that when you use the XamlReader.Load method, you can also create a new namescope by using the overloaded version that receives 2 parameters (the second parameter lets you specify...
Read More...
More Posts
Next page »
Search
Go
This Blog
Home
Contact
About
Tags
ASP.NET
Books
C#
DDD
Design by Contract
Gadgets
Javascript
JQuery
MS AJAX
Multithreading
MVC
NHibernate
Parallel Extensions
PowerShell
S#arp
Silverlight
Tools
Trivia
VS
VS 2010
WCF
WF
Windows 7
WPF
XAML
Community
Home
Blogs
Media
Groups
Archives
November 2009 (35)
October 2009 (70)
September 2009 (35)
August 2009 (52)
July 2009 (48)
June 2009 (48)
May 2009 (44)
April 2009 (39)
March 2009 (39)
February 2009 (23)
January 2009 (22)
December 2008 (18)
November 2008 (20)
October 2008 (22)
September 2008 (31)
August 2008 (3)
July 2008 (25)
June 2008 (26)
May 2008 (30)
April 2008 (5)
March 2008 (11)
February 2008 (9)
January 2008 (15)
December 2007 (10)
November 2007 (20)
October 2007 (19)
September 2007 (29)
August 2007 (12)
July 2007 (20)
June 2007 (33)
May 2007 (44)
April 2007 (28)
March 2007 (27)
February 2007 (21)
January 2007 (37)
December 2006 (8)
November 2006 (17)
October 2006 (14)
September 2006 (5)
August 2006 (7)
July 2006 (4)
Syndication
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go
News
My books