Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 41  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to change the cursor with a local image in wpf?
  2. var res = Application.GetResourceStream(new Uri("pack://application:,,,/MyProj;component/Images/delete-icon.png"));
  3.  
  4.     this.Cursor = new Cursor(res.Stream);
  5.        
  6. ReadTimeout = (res.Stream).ReadTimeout threw an exception of type 'System.InvalidOperationException'
  7. WriteTimeout = (res.Stream).WriteTimeout threw an exception of type 'System.InvalidOperationException'