Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. var brush = new ImageBrush();
  2. brush.ImageSource = new BitmapImage(new Uri("/Pics/Test/1/1_10.png", UriKind.Relative));
  3. MainButton.Background = brush;
  4.  
  5. #if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
  6. UnhandledException += (sender, e) =>
  7. {
  8. if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
  9. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement