반응형 behinde1 WPF Image Source codebehind 로 변경 방법 WPF 에서 이미지 위에 마우스를 올려쓸 때 이미지 변경 방법. 1. 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.GetExecutingAssembl.. 2010. 10. 18. 이전 1 다음 반응형