Author Archives: Umair
Resolution of Dependency Properties
As I mentioned in my previous blog post, dependency properties depend on any number of services (called property providers) for their values. The Silverlight runtime needs to follow strict rules of precedence to determine the value of a dependency property. … Continue reading
Filed under .NET, Programming
Dependency Properties in Silverlight
Very simply, a property of an element that depends on a number of property-providers outside the element is called a "dependency property". Each of these providers has its own level of precedence. These properties can be either set directly by … Continue reading
Filed under .NET, Programming
I’m a DZone MVB
Recently DZone.com approached me and asked if I wanted to become a part of their MVB (Most Valued Blogger) program. I accepted. The basic idea is that occasionally some of my posts will be republished at DZone network sites, with … Continue reading
Filed under General
Book Review: iPhone In Action
Recently, I had an opportunity to review the book iPhone In Action for DZone. The review went online yesterday, and here’s a link: http://books.dzone.com/reviews/iphone-action-introduction-web
Filed under Reviews
Creating a Custom XAML TypeConverter
TypeConverters provide a means of converting a String to the appropriate .NET type or a new instance when XAML is processed. I’ve already looked at how the XAML parser searches for TypeConverters (XAML and TypeConverters ) Now let’s take a … Continue reading
Filed under Programming
Adding a Custom Silverlight Control
Silverlight has a ton of controls that we can use in our Silverlight apps. Most of the times, this collection of controls is sufficient, but every once in a while, we need to create a custom control. Adding a new … Continue reading
Filed under .NET, Programming
XAML and TypeConverters
In a XAML document, every element maps to an instance of a Silverlight (.NET) class. The properties of this instance can be set through attributes in the XAML file. There is a bit of a catch though. These attribute values … Continue reading
Filed under .NET, Programming
Silverlight – Getting started with XAML
XAML stands for eXtensible Application Markup Language (pronounced zamm-uhl). It is an XML based markup language used to instantiate .NET objects. XAML was initially designed as part of Windows Presentation Foundation (WPF), and allows developers to define rich user interfaces. … Continue reading
Filed under .NET, Programming
Visualizing STLPort data structures in Visual Studio Debugger
Recently, I had to use STL Port for a particular project. While debugging, I was hampered by the fact that my data structures were not providing as much information in the watch window as I would have hoped. Using std::vector … Continue reading
Filed under Debugging, Programming
Java Enum Puzzler
Recently, I ran into an interesting bit of code related to Java enumerations. Here’s a contrived minimal sample: When this code is run, an intuitive expectation is to see the following printed to the console: BRAVO CHARLIE ALPHA However, when … Continue reading
Filed under Java, Programming