public Window GetWindow()
{
- Window ret = new Window(Interop.Application.Application_GetWindow(swigCPtr), true);
+ Window ret = Registry.GetManagedBaseHandleFromNativePtr(Interop.Application.Application_GetWindow(swigCPtr)) as Window;
+ if(ret == null)
+ {
+ ret = new Window(Interop.Application.Application_GetWindow(swigCPtr), true);
+ }
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
return ret;
}
- internal static List<Window> GetWindowList()
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static List<Window> GetWindowList()
{
uint ListSize = Interop.Application.Application_GetWindowsListSize();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
private void SwigDirectorOnCreate(string contentInfo, global::System.IntPtr window)
{
- OnCreate(contentInfo, new Window(window, true));
+ Window ret = Registry.GetManagedBaseHandleFromNativePtr(window) as Window;
+ if (ret == null)
+ {
+ ret = new Window(window, true);
+ }
+ OnCreate(contentInfo, ret);
}
private void SwigDirectorOnTerminate(string contentInfo, int type)
private void SwigDirectorOnResize(global::System.IntPtr window)
{
- OnResize(new Window(window, true));
+ Window ret = Registry.GetManagedBaseHandleFromNativePtr(window) as Window;
+ if (ret == null)
+ {
+ ret = new Window(window, true);
+ }
+ OnResize(ret);
}
private void SwigDirectorOnUpdate(string contentInfo, int force)