Visual Studio Xamarin继承类对象初始化没有智能感知

时间:2015-02-20 17:15:09

标签: c# xamarin intellisense

当我创建一个从任何UIControl继承的新类时,我在尝试初始化一个新对象时没有看到intellisense。具体来说,这只在进行匿名初始化时发生。出于演示的目的,我将使用UIView。有没有人知道这个的原因,如果有解决方法,或者我做错了什么?

public class Foo : UIView
{
    public int bar { get; set; }
    public Foo() { }
}

public class Test
{
    public Test() {
        //no intellisense when hitting spacebar between braces
        var myFoo = new Foo { };
        //can still set properties however
        var myFoo2 = new Foo { bar = 1 };
    }
}

我正在使用Visual Studio Professional 2013和Xamarin 3.029。

0 个答案:

没有答案
相关问题