小编Kir*_*are的帖子

Xamarin.IOS错误 - 无法解析引用:C:/ Program Files(x86)/../ Xamarin.iOS/v1.0/Facades/System.Private.CoreLib.InteropServices.dll

我从事跨平台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

请建议我该怎么做才能解决这个错误.

提前致谢

android xamarin.ios ios

12
推荐指数
2
解决办法
3353
查看次数

如何在便携式跨平台 xamarin 表单中将表单背景设置为透明度?

我正在使用便携式 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截图:

在此处输入图片说明

请建议我如何在两个平台上都有透明度表格

提前致谢

android xamarin.ios ios

10
推荐指数
2
解决办法
2万
查看次数

如何在便携式xamarin ios项目中更改闪屏?

我正在使用便携式xamarin表单,其中一个项目是IOS项目

在IOS项目中,我想创建启动画面.我在ios项目属性中添加了Iphone Launches图像和iPad启动的图像.

当我运行应用程序时,它显示默认的启动画面.

我也尝试从info.plist文件中删除launchscreen标签,当我运行应用程序启动画面显示但页眉和页脚变黑

请建议我如何更改ios项目的启动画面

提前致谢.

splash-screen xamarin.ios ios

3
推荐指数
1
解决办法
2542
查看次数

Xamarin.form - Masterdetailpage:System.Reflection.TargetInvocationException:调用目标抛出了异常

我使用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)

c# android master-pages ios xamarin

0
推荐指数
1
解决办法
2402
查看次数

标签 统计

ios ×4

android ×3

xamarin.ios ×3

c# ×1

master-pages ×1

splash-screen ×1

xamarin ×1