3
private void SetCredentials()
{
username = txtfromEmail.Text;
password = txtpassword.Text;
pictureLogin.Source = @"C:\Users\Sergio\Documents\Visual Studio 2008\Projects\emailwpf\emailwpf\ok.png";
}
오류 : "Cannot convert string to ImageSource"
가 나타납니다.이미지 설정 리소스 파일에서 소스.
어떻게해야합니까?
긴 문자열 대신 "/ok.png"형식을 사용하려면 어떻게해야합니까? –
그냥 Uri 개체를 만들고 UriKind.Relative를 지정하면됩니다. – Yurec