我成功地将我的应用程序上传到xamarin表单上,但在上传之后我收到了来自apple的电子邮件:
"缺少必需的图标文件.该软件包不包含完全'167x167'像素的iPad应用程序图标,格式为.png."
所以它想在我的资源文件中想要一个图像(不是在info.plist图标中,因为它们不要求167x那里)但是我应该命名它:Icon-83.5@2x.png或Icon-174.png?
如何在 xamarin 形式的内容页面上启用缩放?是否可以在整个内容页面上启用它?还是只能放大图像?
我有一个listview,我将从数据库中获取的值绑定到我的XAML.我现在将一个值绑定到我的XAML中,但我希望绑定两个值,是可能还是只能在代码中?如果是这样,我将如何实现这一目标.
这是我的代码:
public class items
{
public string infoOne { get; set;}
public string infoTwo { get; set;}
}
async void loadList ()
{
var getItems = await phpApi.getEvents ();
theList = new List <items> ();
foreach (var currentitem in getItems["results"]) {
theList.Add (new items () {
infoOne = currentitem ["name"].ToString (),
infoTwo = currentitem ["phone"].ToString ()
});
mylist.ItemsSource = theList;
}
Run Code Online (Sandbox Code Playgroud)
XAML:
<Label Text = "{Binding infoOne}" /> //How could I add infoTwo to the same label and also …Run Code Online (Sandbox Code Playgroud) 我在地图上有两个长度和纬度的针脚,我希望看到它们之间的距离.这就是我到目前为止所拥有的.
var myPin = new Pin ();
myPin.Label = "pin1";
myPin.Address = "test1";
myPin.Position = new Position(37.797513, -122.402068);
myPin.Label = "pin2";
myPin.Address = "test2";
myPin.Position = new Position(37.7, -122.3);
mymap.Pins.Add(myPin);
Run Code Online (Sandbox Code Playgroud)
所以我的地图上有两个不同的针脚.我怎样才能看到这两个公里之间的距离?我的目标是制作一个带有距离(km)的标签作为文本.
(我有一个客户渲染器基础准备好了解决距离功能的唯一方法是通过渲染器).