Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
swdev:dotnet:wpf:resources [2011/07/01 09:27]
smayr [Resource Dictionary]
swdev:dotnet:wpf:resources [2011/07/01 09:30] (current)
smayr
Line 35: Line 35:
 == Resource Dictionary == == Resource Dictionary ==
  
-=== ResourceDictionary Assembly ===+==== ResourceDictionary in Application ==== 
 +  * Create a resource dictionary using XML. Eg: ''Assets\FormDictionary.xaml'': <code xml> 
 +<ResourceDictionary  
 +             xmlns:sys="clr-namespace:System;assembly=mscorlib" 
 +             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
 +             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> 
 + 
 +    <!--Control colors.--> 
 +    <Color x:Key="WindowColor">#FFE8EDF9</Color> 
 +    <Color x:Key="ContentAreaColorLight">#FFC5CBF9</Color> 
 +    <Color x:Key="ContentAreaColorDark">#FF7381F9</Color> 
 +    . . . 
 +</ResourceDictionary> 
 +</code>     
 + 
 + 
 +==== ResourceDictionary Assembly ====
   * Create an assembly project in C#.   * Create an assembly project in C#.
   * Add references to:   * Add references to: