<Grid Column="0" Row="1" VerticalOptions="FillAndExpand" Style="{StaticResource DashboardMenusMyProfileGridStyle}">
<Image Source="myEvent.png" WidthRequest="16" HeightRequest="16"></Image>
<Label Text="Hesabım" TextColor="Black" VerticalOptions="Center"></Label>
</Grid>
您好,我在Android Project中的图像夹中有一个图像。我使用16x16 Pixel下载了它。但是如果我在代码上方运行。图像没有16像素。我如何从Xamarin.forms上的图像组件设置高度或宽度
通常,这应该对您有用。我认为问题在于垂直=" fillandexpand"
发生的事情是因为图像和标签包含在网格中,它们继承了。
尝试更改网格上的垂直词。