Exemplo n.º 1
0
 public XwtThemedPopup(PopupType type) : base(type)
 {
     base.Content         = container = new XwtPopoverCanvas();
     BackgroundColor      = Xwt.Drawing.Colors.Transparent;
     Decorated            = true;
     Theme.TargetPosition = CurrentPosition;
 }
Exemplo n.º 2
0
        public XwtThemedPopup(PopupType type) : base(type)
        {
            base.Content    = container = new XwtPopoverCanvas();
            BackgroundColor = Xwt.Drawing.Colors.Transparent;
#if MAC
            // background rendering of undecorated windows is broken in HighSierra and previous versions
            if (MacSystemInformation.OsVersion <= MacSystemInformation.HighSierra)
            {
                Decorated = true;
            }
#else
            Decorated = true;
#endif
            Theme.TargetPosition = CurrentPosition;
        }