Пример #1
0
        public static T AttachTo <T>(this T e, ISupportsContainer c)
            where T : UIElement
        {
            if (e == null)
            {
                return(e);
            }

            e.AttachTo(c.Container);

            return(e);
        }
Пример #2
0
        public static T AttachContainerTo <T>(this T e, ISupportsContainer c)
            where T : ISupportsContainer
        {
            if (e == null)
            {
                return(e);
            }

            e.Container.AttachTo(c.Container);

            return(e);
        }
Пример #3
0
        public static T[] AttachContainerTo <T>(this T[] e, ISupportsContainer c)
            where T : ISupportsContainer
        {
            if (e == null)
            {
                return(e);
            }

            foreach (var v in e)
            {
                v.Container.AttachTo(c.Container);
            }

            return(e);
        }
 public static Window ToWindow(this ISupportsContainer e)
 {
     return(e.Container.ToWindow());
 }
Пример #5
0
 public static void Show(this ISupportsContainer e, bool value)
 {
     e.Container.Show(value);
 }
Пример #6
0
 public static void Hide(this ISupportsContainer e)
 {
     e.Show(false);
 }
Пример #7
0
        // javascript DOM will not reflect the latest position
        // within the same callstack

        public static void Show(this ISupportsContainer e)
        {
            e.Show(true);
        }