はい、入力セルに任意の背景画像を設定できます。
IOS
これを行う必要があるため:
Control.BorderStyle = UITextBorderStyle.None;
UIImage img = UIImage.FromFile("ImageName.png");
Control.Background = img;
の場合android
:
Control.Background = ContextCompat.GetDrawable(Context, Resource.Drawable.ImageName);
これを使用してアンダーバーを非表示にするにはandroid
:
Control.SetBackgroundColor(global::Android.Graphics.Color.Transparent);
これを行った後、エントリセルの背景画像の高さ幅を次のように調整できますxaml
。
<local:MyEntry Placeholder="placeholder" PlaceholderColor="Grey" TextColor="Black" WidthRequest="200" HeightRequest="50"/>