我正在Windows 7上使用Xamarin Studio 4.0.3(以前的 MonoDevelop)学习C#。尝试使用类(只有一段代码)Stopwatch
using System.Diagnostics;
class MainClass {
    public static void Main (string[] args) {
         Stopwatch stopWatch = new Stopwatch();                 
    }
}
我得到:
错误 CS0246:找不到类型或命名空间名称“秒表”。您是否缺少 using 指令或程序集引用?
我的目标框架是:Mono .NET 4.0。根据MSDN秒表类应该实现。
顺便说一句,DateTime类工作正常。
问题是:我是否遗漏了什么(正确的命名空间、库链接)或秒表根本没有实现?
我正在为 IOS 和 Android 平台开发 Xamarin Forms (PCL) 应用程序。
我的 Xamarin Studio 版本是 5.5.4(内部版本 15)。我在稳定频道。
我的 Xamarin Forms dll 版本是 1.3.0.6292。
我还添加了来自 NuGet v1.2.0 的 Xamarin Forms Labs 参考。
从昨天开始,每当我构建解决方案时,都会出现以下错误:
error : Error initializing task XamlG: Not registered task XamlG.
此错误的任何可能解决方案?我已经多次尝试清理和构建。甚至删除了整个源代码并从源代码管理中重新下载了所有内容,但还是出现了同样的错误。
祝大家有个美好的一天,我的Grid有4列,我想合并column#2和Column#3,如下图所示,但是问题是每个条目都分配给特定的Grid.Column。我该如何实现?谢谢你,美好的一天。我的Xaml代码:
    <ContentView Grid.Row="0" HorizontalOptions="StartAndExpand" Padding="10" VerticalOptions="CenterAndExpand">
  <Grid RowSpacing="0">
     <Grid.RowDefinitions>
          <RowDefinition Height="1*"/>
          <RowDefinition Height="*"/>
     </Grid.RowDefinitions>  
      <Grid.ColumnDefinitions>
          <ColumnDefinition Width="1*"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="*"/>
      </Grid.ColumnDefinitions>
     <Image Grid.Column="0"
            Grid.Row="0"
            Grid.RowSpan="2"
            Source="contact.png" 
            HorizontalOptions="CenterAndExpand"
            VerticalOptions="CenterAndExpand"
            />
      <Label Grid.Row="0"
             Grid.Column="1"
             FontAttributes="Bold"
             HorizontalOptions="Start" 
             Text="Number:"
             TextColor="White" 
             VerticalOptions="Center"/>
      <Label Grid.Row="1"
            Grid.Column="1"
            FontAttributes="Bold" 
            HorizontalOptions="Start"
            Text="Name:"
            TextColor="White"
            VerticalOptions="Center"/>
    <Entry  Grid.Row="0"
            Grid.Column="2"
            FontAttributes="Bold"
            IsEnabled="False"
            HorizontalOptions="Start"
            Text="911"
            TextColor="White"
            VerticalOptions="Center"/>
    <Entry  Grid.Row="1"
            Grid.Column="2"
            IsEnabled="False"
            FontAttributes="Bold"
            HorizontalOptions="Start"
            Text="Andreson Smith"
            TextColor="White"
            VerticalOptions="Center"/>
     </Grid>
   </ContentView>
我对Xamarin Forms相对较新:iOS Apps.就像任何其他应用程序一样,我必须在图像上创建一个事件.主页,返回,帐户设置.
是否在Image Button Event上触发了这些事件?
可以使用 XAML 将多个绑定添加到标签,例如:
<Label Text = "{Binding Address} - {Binding City} / {Binding State}" TextColor = "# ffeece" />
xamarin.ios xamarin.android xamarin xamarin-studio xamarin.forms
什么是在Iama和Android的xamarin pcl应用程序中加载服务器上的pdf的最佳方式.是否有一个好的nuget或我们必须编写自定义渲染器?
xamarin.ios xamarin.android xamarin xamarin-studio xamarin.forms
我正试图在Xamarin Studio的Xamarin.iOS项目中拥抱新的PCL乐趣.我为我的项目创建了一个PCL"Core"库,并通过NuGet 添加了Splat(v0.3.4).然后,在一个消费的iOS项目中,我引用了我的核心库.一旦我这样做,就会出现一些编译错误.
其中之一:
Error CS0012: The type `System.Drawing.PointF' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Splat.Portable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' (CS0012)
多个这些:
Error CS0029: Cannot implicitly convert type `System.Drawing.PointF [monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]' to `System.Drawing.PointF [Splat.Portable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]' (CS0029)
看起来这是因为自从v0.3.4命中NuGet以来对Splat的拉动请求已经解决了这个问题.跟着那里的笔记,我添加了对Splat.Portable.dlliOS项目的引用.当我这样做时,编译错误会改变为抱怨太多的类型定义.
Error CS0433: The imported type `System.Drawing.RectangleF' is defined multiple times (CS0433)
Error CS0433: The imported type `System.Drawing.PointF' is defined multiple times …我有一个带有输入字段的Xaml页面。当我尝试在Xamarin.froms的Entry中输入值时键盘与Entry Field重叠
据我所知,Xamarin将c#转换为二进制文件,并使用mtouch做到这一点。
LLVM是将Objective-C覆盖为二进制代码的XCode方式。
因此,Xamarin不使用LLVM。
请纠正我,如果我错了
xamarin-studio ×10
xamarin ×6
xamarin.ios ×4
ios ×3
c# ×1
fonts ×1
llvm ×1
storyboard ×1
xaml ×1
xcode ×1