public static T AttachTo <T>(this T e, ISupportsContainer c) where T : UIElement { if (e == null) { return(e); } e.AttachTo(c.Container); return(e); }
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); }
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()); }
public static void Show(this ISupportsContainer e, bool value) { e.Container.Show(value); }
public static void Hide(this ISupportsContainer e) { e.Show(false); }
// javascript DOM will not reflect the latest position // within the same callstack public static void Show(this ISupportsContainer e) { e.Show(true); }