Esempio n. 1
0
                public SecondaryToolbarItemContent()
                    : base(new CGRect((nfloat) 0, (nfloat) 0, (nfloat) 75, (nfloat) 20))
                {
                    BackgroundColor = Color.Transparent;

                    var imageView = new NSImageView();

                    imageView.SetBackgroundColor(Color.Transparent);

                    this.imageView = imageView;

                    this.AddSubview((NSView)this.imageView);

                    var textField = new NSTextField();

                    textField.SetBackgroundColor(Color.Transparent);
                    textField.MaximumNumberOfLines = 1;
                    textField.LineBreakMode        = NSLineBreakMode.TruncatingTail;
                    textField.Font = NSFont.SystemFontOfSize((nfloat)10);
                    this.label     = textField;

                    this.AddSubview(this.label);
                }