我从事跨平台PCL Xamarin Forms(Android,IOS)项目.
我正在使用Visual Studio 2015和Window 10 OS来制作xamarin项目.我在MAC PC上安装了Xamarin工作室来运行IOS项目.
我的IOS和android项目成功运行但是当我在MAC PC中更新Xamarin工作室时,它开始在ios项目中给出错误:
无法解析参考:C:/ Program Files(x86)/ Reference Assemblies/Microsoft/Framework/Xamarin.iOS/v1.0/Facades/System.Private.CoreLib.InteropServices.dll
请建议我该怎么做才能解决这个错误.
提前致谢
我正在使用便携式 xamarin 跨平台。我有两个项目 android 和 IOS。
我必须把表格做成透明的形式。我已经为相同的代码编写了代码,这段代码在 android 中完美运行,但在 IOS 中却没有
下面是我的代码:
<ContentPage BackgroundColor="#00000000">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="180"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="200"></RowDefinition>
</Grid.RowDefinitions>
<StackLayout Grid.Row="0" VerticalOptions="StartAndExpand" HorizontalOptions="FillAndExpand" BackgroundColor="#80000000" HeightRequest="175" >
</StackLayout>
<BoxView HeightRequest="200" Grid.Row="1"></BoxView>
<StackLayout VerticalOptions="End" HorizontalOptions="FillAndExpand" BackgroundColor="#80000000" HeightRequest="160" Grid.Row="2" >
<Label Text="05:00" FontSize="60" FontAttributes="Bold" TextColor="White" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" ></Label>
</StackLayout>
</Grid>
</ContentPage>
Run Code Online (Sandbox Code Playgroud)
下面是安卓截图:
以下是IOS截图:
请建议我如何在两个平台上都有透明度表格
提前致谢
我正在使用便携式xamarin表单,其中一个项目是IOS项目
在IOS项目中,我想创建启动画面.我在ios项目属性中添加了Iphone Launches图像和iPad启动的图像.
当我运行应用程序时,它显示默认的启动画面.
我也尝试从info.plist文件中删除launchscreen标签,当我运行应用程序启动画面显示但页眉和页脚变黑
请建议我如何更改ios项目的启动画面
提前致谢.
我使用xamarin.form可移植
当我使用MasterDetailPage时,我收到错误:"System.Reflection.TargetInvocationException:调用目标抛出了异常."
下面是我的xaml代码
<?xml version="1.0" encoding="utf-8" ?>
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="SlideNavigation.Page1"
IsPresented="True">
<MasterDetailPage.Master>
<ContentPage>
<ListView x:Name="listview" ItemSelected="Listview_itemSelected">
<ListView.ItemTemplate>
<DataTemplate>
<TextCell Text="{Binding Name}" Detail="{Binding Status}"></TextCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ContentPage>
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<ContentPage ></ContentPage>
</MasterDetailPage.Detail>
</MasterDetailPage>
Run Code Online (Sandbox Code Playgroud)
下面是我的.cs代码
public partial class Page1 : MasterDetailPage
{
public Page1()
{
InitializeComponent();
listview.ItemsSource = new List<Contact>
{
new Contact { Name = "Kirti",Status = "True"},
new Contact { Name = "Nilesh",Status = "False"}
};
}
void Listview_itemSelected(object sender, SelectedItemChangedEventArgs e)
{
var contact = e.SelectedItem as …Run Code Online (Sandbox Code Playgroud)