public override async void ViewDidLoad() { base.ViewDidLoad(); urhoSurface = new UrhoSurface(); urhoSurface.Frame = UrhoSurfacePlaceholder.Bounds; //Add UrhoSurface to a NSView defined in the storyboard. UrhoSurfacePlaceholder.AddSubview(urhoSurface); }
public override async void ViewDidLoad() { base.ViewDidLoad(); urhoSurface = new UrhoSurface(); urhoSurface.Frame = UrhoSurfacePlaceholder.Frame; urhoSurface.AutoresizingMask = NSViewResizingMask.WidthSizable | NSViewResizingMask.HeightSizable; UrhoSurfacePlaceholder.AddSubview(urhoSurface); previewer = new PreviewerApplication(new AssetsResolver { AssetsImporterFormats = true, AssetsImporterRareFormats = true, Images = true }); previewer.SurfaceRecreationRequested += OnSurfaceRequested; }