Silverlight: xap caching in IIS

Silverlight: xap caching in IIS

Today i was having a problem where my SL app was not updating. Looked at the IIS settings and finally stumbled on Output Caching. To see if this would work, i added a rule for .xap files to chache until the file changed. Now IIS looks like so for caching:

(more…)

Silverlight: Design Time support for controls

When you are creating custom controls, always add attributes for their properties so the controls are categorized the way you want them. For instanced, the following attributes add a new category called MyCustomer.app to the property designers in Visual Studio and Blend. Now my properties show up under the MyCustomer.app category: (more…)

Silverlight: Merged dictionaries

If you need to change a resource dictionary its easy to swap them out. I like to define the dictionary in XAML (App.xaml) like so:

<ResourceDictionary>
 <ResourceDictionary.MergedDictionaries>
 <ResourceDictionary Source="BlueResourceDictionary.xaml"/>
 </ResourceDictionary.MergedDictionaries>
 </ResourceDictionary>

(more…)

WPF/Silverlight: Buttons and Content

I really love the Content property of many controls in XAML. The button is one that uses the Content property instead of a Text property. That gives us the ability to put almost anything into the Buttons content. For instance,check out this:

(more…)