Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="using:ClassLibraryTest">
  5.  
  6. <SolidColorBrush x:Key="MyButtonColor" Color="#FF0000FF" />
  7.  
  8. </ResourceDictionary>
  9.  
  10. <ResourceDictionary
  11. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  12. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  13. xmlns:local="using:MainApplicationTest">
  14.  
  15. <SolidColorBrush x:Key="MyButtonColor" Color="#00FF00FF" />
  16.  
  17. </ResourceDictionary>
  18.  
  19. var mainAppDictionary = new ResourceDictionary();
  20. mainAppDictionary.Source = new Uri("/using:MainApplicationTest;component/MainApplicationDictionary.xaml", UriKind.RelativeOrAbsolute);
  21. classLibraryTest.SetResourceDictionary(mainAppDictionary);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement