目前使用Xamarin.Forms.Labs庫,當我使用的ImageButton,只有文本顯示,而不是圖像:Xamarin窗體的ImageButton
var bttn = new ImageButton {
BackgroundColor = Xamarin.Forms.Color.Transparent,
Text = "Button",
HorizontalOptions = LayoutOptions.FillAndExpand,
Source = "image.png",
Orientation = Xamarin.Forms.Labs.Enums.ImageOrientation.ImageToLeft,
ImageHeightRequest = 50,
ImageWidthRequest = 50,
WidthRequest = 150,
HeightRequest = 150,
};
爲什麼不顯示圖像?