2017-07-02 63 views

回答

0

試圖通過將Horizo​​ntalOptions和VerticalOptions財產的圖像視圖如下,

Image imageView = new ImageView; 
imageView.HorizontalOptions = LayoutOptions.StartAndExpand (or) LayoutOptions.CenterAndExpand 
imageView.VerticalOptions = LayoutOptions.StartAndExpand (or) LayoutOptions.CenterAndExpand 

此外,通過設置看點屬性圖像視圖嘗試,

imageView.Aspect = Aspect.AspectFit 
+0

我不明白怎麼會導致在沒有填充整個網格單元的圖像中。 – user1023110

相關問題