title: How to create ResourceDictionary in code-behind?
body: <pre><code>&lt;ResourceDictionary
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:sys="clr-namespace:System;assembly=mscorlib"&gt;
  
      &lt;sys:String x:Key="one"&gt;ONE&lt;/sys:String&gt;
      &lt;sys:String x:Key="two"&gt;TWO&lt;/sys:String&gt;
      &lt;sys:String x:Key="three"&gt;THREE&lt;/sys:String&gt;
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>Now want to dynamically create resource ResourceDictionary same as above by <strong>code-behind</strong> in WPF using C#. Is it possible to create so?</p>