我试图让一个TKCustomMap出现在iOS模拟器上,但它不断抛出提到的XamlParseException。我已经在这个问题上坚持了一段时间。 Xamarin仍然是新手,并会欣赏一些见解。我只是想加载它,所以我可以转到ViewModels。
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:tk="clr-namespace:TK.CustomMap;assembly=TK.CustomMap" x:Class="pop.MapPage">
<ContentPage.Content>
<tk:TKCustomMap MapRegion="{Binding MapRegion}"
IsShowingUser="{Binding IsShowingUser}"
IsClusteringEnabled="{Binding IsClusteringEnabled}"
Pins="{Binding Pins}"
PinSelectedCommand="{Binding PinSelectedCommand}"
PinDragEndCommand="{Binding PinDragEndCommand}"
Routes="{Binding Routes}"
RouteClickedCommand="{Binding RouteClickedCommand}"
Polylines="{Binding Polylines}"
Polygons="{Binding Polygons}"
Circles="{Binding Circles}"
TilesUrlOptions="{Binding TileOptions}"
MapFunctions="{Binding MapFunctions}"
SelectedPin="{Binding SelectedPin}"
MapClickedCommand="{Binding MapClickedCommand}"
MapLongPressCommand="{Binding MapLongPressCommand}"
CalloutClickedCommand="{Binding CalloutClickedCommand}" />
</ContentPage.Content>
</ContentPage>
和cs文件:
using System;
using System.Collections.Generic;
using TK.CustomMap;
using Xamarin.Forms;
namespace pop
{
public partial class MapPage : ContentPage
{
public MapPage()
{
InitializeComponent();
}
}
}
有人能看到我在这里失踪的东西吗?
谢谢!
-T