Xamarin - SignaturePad BackgroundImageView 问题
Xamarin - SignaturePad BackgroundImageView trouble
无法正常工作 - 我一定是遗漏了什么:
signaturePad2.BackgroundImageView = new ImageView(Context)
{
Id = GenerateId(this),
LayoutParameters = new RelativeLayout.LayoutParams (RelativeLayout.LayoutParams.MatchParent, RelativeLayout.LayoutParams.MatchParent)
};
signaturePad2.AddView(BackgroundImageView);
signaturePad2.BackgroundImage = MyGlobals.FileNameOfPhotoTaken;
BackgroundImage
的类型是 ImageSource
padView.BackgroundImage = ImageSource.FromUri(new Uri(
"https://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Xamarin-logo.svg/220px-Xamarin-logo.svg.png"));
无法正常工作 - 我一定是遗漏了什么:
signaturePad2.BackgroundImageView = new ImageView(Context)
{
Id = GenerateId(this),
LayoutParameters = new RelativeLayout.LayoutParams (RelativeLayout.LayoutParams.MatchParent, RelativeLayout.LayoutParams.MatchParent)
};
signaturePad2.AddView(BackgroundImageView);
signaturePad2.BackgroundImage = MyGlobals.FileNameOfPhotoTaken;
BackgroundImage
的类型是 ImageSource
padView.BackgroundImage = ImageSource.FromUri(new Uri(
"https://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Xamarin-logo.svg/220px-Xamarin-logo.svg.png"));