LA.NET [EN]

January, 2010Archive

Jan 29

The new auto-start feature

Posted in ASP.NET       Comments Off on The new auto-start feature

Version 4.0 of ASP.NET introduces a new feature called auto-start. The idea is simple: to improve the performance of the web app by allowing apps to run some expensive code before the first request comes. I must say that this is really an interesting concept (and no, I won’t be going into details here because […]

Read the rest of this entry »

Jan 29

Routed events in Silverlight

Posted in Silverlight       Comments Off on Routed events in Silverlight

Routed events were introduced by WPF and they’re responsible for enabling several advanced scenarios in that platform: tunneling: in this case, the event is first raised in the root and goes “down the tree” until the source element that generated the event is reached; bubbling: in this case, the event bubbles from the source element […]

Read the rest of this entry »

Jan 28

Vacations vs work time

Posted in Trivia       Comments Off on Vacations vs work time

I’ve just finished reading an excellent post by Scott Berkun on this topic. I couldn’t agree more, but unfortunately, things don’t work like that (and the problem is not limited to America only!)

Read the rest of this entry »

Jan 27

I’ve just finished reading Scott Berkun’s latest book. Scott is a really good communicator and you can say that I’ve been a fan of his work since his first best seller (Making things happen), which, btw, I’ve reviewed here a long time ago. You’ll be able to find several interesting topics in Confessions of a […]

Read the rest of this entry »

Jan 27

Creating attached properties

Posted in Silverlight       Comments Off on Creating attached properties

Now that you understand what attached properties are, we’re in the position to look at what is needed for creating attached properties. Since we’re building custom code, we do really need to rely in the RegisterAttached method (of the DependencyProperty class). Creating a new attached properties means doing the following: adding a static DependencyProperty field […]

Read the rest of this entry »

Jan 25

Attached properties

Posted in Silverlight       Comments Off on Attached properties

An attached property is an interesting concept. The docs define it as: An attached property is intended to be used as a type of global property that is settable on any object An attached property lets you define properties in an object which are only defined by its parent element. Once again, if you have […]

Read the rest of this entry »

Jan 22

Clearing values of dependency properties

Posted in Silverlight       Comments Off on Clearing values of dependency properties

In the previous posts, we’ve met several interesting features associated with dependency properties. I’m not sure if you’ve really had the time to understand the implications of having multiple “providers” (or if my writing was good enough for making you take into account those implications – which probably is true!), so I’ve though about writing […]

Read the rest of this entry »

Jan 21

Setting the value of a dependency property

Posted in Silverlight       Comments Off on Setting the value of a dependency property

2011-01-12 15:19:26

Read the rest of this entry »

Jan 20

Dependency properties and XAML gotchas

Posted in Silverlight       Comments Off on Dependency properties and XAML gotchas

As I’ve said before, dependency properties introduce several advantages over the traditional CLR properties. However, there might some gotchas associated with their use from XAML. As we’ve seen, dependency properties are defined through static fields and exposed through .NET properties for easy consume from C#/VB code (as we’ve seen, getting and setting the value of […]

Read the rest of this entry »

Jan 18

Protected: Dependency property and value inheritance

Posted in Silverlight       Comments Off on Protected: Dependency property and value inheritance

There is no excerpt because this is a protected post.

Read the rest of this entry »

Jan 18

Getting started with dependency properties

Posted in Silverlight       Comments Off on Getting started with dependency properties

The dependency property concept was introduced by WPF 1.0 for exposing rich functionality from XAML. Dependency properties support several features exposed by Silverlight (styling, animation and data binding, for instance). Unfortunately, they also increase the complexity associated with property definition. Dependency properties values at runtime depend on several things. For instance, it could depend on […]

Read the rest of this entry »

Jan 15

Object trees in Silverlight

Posted in Silverlight       Comments Off on Object trees in Silverlight

Whenever you use XAML to build an interface, you’ll end up generating Silverlight objects (obtained from the XAML parsing at runtime). In practice, you’ll end up with an object tree (this is really obvious when you look at the XAML – and yes, I’m assuming you’re using indentation in you XAML files) based on the […]

Read the rest of this entry »

Jan 15

More on XAML and content properties

Posted in Silverlight       Comments Off on More on XAML and content properties

In a previous post, I’ve introduced the concept of content properties. The idea behind a content property is simple: you use the ContentPropertyAttribute to specify the property which will be set with the contents declared inside that element when the property element syntax is not used. Here’s a quick example that should make this concept […]

Read the rest of this entry »

Jan 06

Protected: ASP.NET 4.0: Customizing encoding/decoding

Posted in ASP.NET       Comments Off on Protected: ASP.NET 4.0: Customizing encoding/decoding

There is no excerpt because this is a protected post.

Read the rest of this entry »

Jan 05

[Update: added the missing web.config changed required to make it work] ASP.NET has been performing some sort of validation on user input for ages. For instance, I guess that most of us know that there is a list of chars which can’t be introduced in a textbox (ex.: <) in order to help protect our […]

Read the rest of this entry »

Jan 04

This is the first post of the year! I guess that means I’ll need to wish you all a fantastic New Year and I really hope that everything you wish comes true! Now, this is really a short post about two simple new properties that have been added to the Page class: MetaDescription and MetaKeywords. […]

Read the rest of this entry »