Esempio n. 1
0
    public void BringSubviewToFront()
    {
        var view = new UIView();
        view.AddSubview(new UIView());
        var subview = new UIView();
        view.AddSubview(subview);
        view.AddSubview(new UIView());
        view.BringSubviewToFront(subview);

        var subviews = view.Subviews;
        Assert.AreEqual(subview.Handle, subviews[subviews.Length - 1].Handle);
    }
Esempio n. 2
0
 public void AddSubview()
 {
     var view = new UIView();
     view.AddSubview(new UIView());
     Assert.AreEqual(1, view.Subviews.Length);
 }
Esempio n. 3
0
 public void Superview()
 {
     var view = new UIView();
     var subview = new UIView();
     view.AddSubview(subview);
     Assert.AreEqual(view.Handle, subview.Superview.Handle);
 }
Esempio n. 4
0
    public void SendSubviewToBack()
    {
        var view = new UIView();
        view.AddSubview(new UIView());
        var subview = new UIView();
        view.AddSubview(subview);
        view.AddSubview(new UIView());
        view.SendSubviewToBack(subview);

        var subviews = view.Subviews;
        Assert.AreEqual(subview.Handle, subviews[0].Handle);
    }