Beispiel #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            NSImage image = NSImage.ImageNamed(NSImageName.TrashFull);

            NSView root     = CreateViewHierarchy(image);
            var    rootNode = CalculateLayout(View.Frame, image.Size);

            root.ApplyYogaLayout(rootNode);

            View.AddSubview(root);
        }