예제 #1
0
        void addEdgeConstraint(NSLayoutAttribute edge, NSView parentView, NSView subView)
        {
            var constraint = NSLayoutConstraint.Create(subView, edge, NSLayoutRelation.Equal, parentView, edge, 1, 0);

            parentView.AddConstraint(constraint);
        }
예제 #2
0
 void addEdgeConstraint(NSLayoutAttribute edge, NSView parentView, NSView subView)
 {
     var constraint = NSLayoutConstraint.Create(subView, edge, NSLayoutRelation.Equal, parentView, edge, 1, 0);
     parentView.AddConstraint(constraint);
 }