public static T AttachToContainer <T>(this T e, DisplayObjectContainer c) where T : global::System.Windows.Controls.Panel
        {
            __Panel p = e;

            if (p.InternalSprite.parent != null)
            {
                p.InternalSprite.parent.removeChild(p.InternalSprite);
            }

            c.addChild(p.InternalSprite);

            return(e);
        }
        public static Sprite ToSprite(this Panel e)
        {
            __Panel c = e;

            return(c.InternalSprite);
        }
예제 #3
0
        public static IHTMLElement ToHTMLElement(this global::System.Windows.Controls.Panel e)
        {
            __Panel p = e;

            return(p.InternalSprite);
        }