title: Using XAML style on CodeBehind
body: <p>Guys im trying to using a style from Style.xaml into my code behind
  on my style i have a code like this</p>
  
  <p>file Style.xaml</p>
  
  <pre><code>&lt;SolidColorBrush x:Key="FontGrey" Color="#FFC5C0C0"&gt;&lt;/SolidColorBrush&gt;  
  </code></pre>
  
  <p>and on my Apptest.xaml.cs file i have code like this</p>
  
  <pre><code>txt.Foreground =  new SolidColorBrush(Color.FromArgb(255, 252, 147, 25));
  </code></pre>
  
  <p>if i want to change my foreground color base on style.xaml
  how can i do that? i was trying using resources but it doesnt work</p>
  
  <p>note: Style.xaml and Apptest.xaml are separated</p>