Exemplo n.º 1
0
        protected override void OnSizeToFit()
        {
            var s = EventSink.GetPreferredSize();

            Widget.SetFrameSize(new CGSize((nfloat)s.Width, (nfloat)s.Height));
        }
Exemplo n.º 2
0
        protected override void OnSizeToFit()
        {
            var s = EventSink.GetPreferredSize();

            Widget.SetFrameSize(new System.Drawing.SizeF((float)s.Width, (float)s.Height));
        }