Example #1
0
        public static GraphLayout add_Graph(this System.Windows.Forms.Control winFormsControl)
        {
            var xamlHost = winFormsControl.add_Control <ascx_Xaml_Host>();

            if (xamlHost == null)
            {
                "xamlHost was null".error();
            }
            return(xamlHost.add_Graph());
        }
        public static T add_WPF_Control <T>(this System.Windows.Forms.Control winFormsControl) where T : UIElement
        {
            var xamlHost = winFormsControl.add_Control <ascx_Xaml_Host>();

            return((T)xamlHost.add_Control <T>());
        }
        public static ElementHost add_WPF_Host(this System.Windows.Forms.Control winFormsControl)
        {
            var xamlHost = winFormsControl.add_Control <ascx_Xaml_Host>();

            return(xamlHost.element());
        }