WPF Image Dynamically changing Image source during runtime

前端 未结 6 1661
情深已故
情深已故 2020-12-09 02:59

I have a window with a title on it. When the user selects a choice from a drop down list, the title image can change. The problem is when the image loads, it\'s a blurred, s

6条回答
  •  北海茫月
    2020-12-09 03:34

    Me.imgAddNew.Source = New System.Windows.Media.Imaging.BitmapImage(New Uri("/SPMS;component/Images/Cancel__Red-64.png", UriKind.Relative))
    

提交回复
热议问题