0
我正在使用Xamarin.Forms项目,并且在使用Windows Phone缩放图像时遇到问题。 Windows and Android使用Xamarin Forms在Windows Phone上缩放图像
我正在使用网格来显示所有的图标,这里是我用于1图像按钮的代码。
<Button Image="cam.png"
VerticalOptions="Center"
Grid.Row="0" Grid.Column="0"
BorderColor="Transparent"
BackgroundColor="Transparent"
Clicked="OnTrafficClicked"/>
我发现这个几个类似的帖子,但我不知道我将如何实现缩放在平台上,当有多个图像。
我想这一点,但我无法运行该程序
<Image.Scale>
<OnPlatform x:TypeArguments="Scale"
WinPhone="1.5" />
</Image.Scale>
https://forums.xamarin.com/discussion/19525/image-source-with-onplatform-in-xaml
https://forums.xamarin.com/discussion/47947/differences-with-scaling-between-the-platforms – Jason