WPF 에서 이미지 위에 마우스를 올려쓸 때 이미지 변경 방법.
1.
var uriSource = new Uri(@"/WpfApplication1;component/image_over.png", UriKind.Relative);
ImageName.Source = new BitmapImage(uriSource);
var uriSource = new Uri(@"/WpfApplication1;component/image_over.png", UriKind.Relative);
ImageName.Source = new BitmapImage(uriSource);
2.
string uriSource = "pack://application:,,,/AssemblyName;component/image_over.png";
ImageName.Source = new ImageSourceConverter().ConvertFromString(uriSource) as ImageSource;
3.
Assembly asm = Assembly.GetExecutingAssembly();
Stream iconStream = asm.GetManifestResourceStream("image_over.png");
BitmapImage bitmap = new BitmapImage();
bitmap.BeginInit();
bitmap.StreamSource = iconStream;
bitmap.EndInit();
ImageName.Source = bitmap;