/// <summary> /// Constructs a LayoutController which controls the measuring and layouting.<br /> /// </summary> public LayoutController() { global::System.IntPtr cPtr = LayoutPINVOKE.LayoutController_New(); // Wrap cPtr in a managed handle. unmanagedLayoutController = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); mInstance = new Callback(Process); LayoutPINVOKE.LayoutController_SetCallback(unmanagedLayoutController, mInstance); }