void AddNativeBindings(NativeBindingGalleryPage page) { if (page.NativeControlsAdded) { return; } StackLayout sl = page.Layout; int width = 200; int heightCustomLabelView = 100; var uilabel = new NSTextField(new CGRect(0, 0, width, heightCustomLabelView)) { BackgroundColor = NSColor.Clear, Editable = false, Bezeled = false, DrawsBackground = false, MaximumNumberOfLines = 0, LineBreakMode = NSLineBreakMode.ByWordWrapping, Font = NSFont.FromFontName("Helvetica", 24f), StringValue = "DefaultText" }; var uibuttonColor = NSButtonExtensions.CreateButton("Toggle Text Color Binding", () => uilabel.TextColor = NSColor.Blue); uibuttonColor.Font = NSFont.FromFontName("Helvetica", 14f); uilabel.SetBinding("StringValue", new Binding("NativeLabel")); uilabel.SetBinding(nameof(uilabel.TextColor), new Binding("NativeLabelColor", converter: new ColorConverter())); sl?.Children.Add(uilabel); sl?.Children.Add(uibuttonColor.ToView()); //var colorPicker = new NSColorWell(); //colorPicker.SetBinding("SelectedColor", new Binding("NativeLabelColor", BindingMode.TwoWay, new ColorConverter()), "ColorPicked"); //sl?.Children.Add(colorPicker); page.NativeControlsAdded = true; }