- Modify GetWindowList for getting Native Ptr
- Set Window name when creating window using window name
List<Window> WindowList = new List<Window>();
for( uint i = 0; i < ListSize; ++i )
{
- Window currWin = new Window(Interop.Application.Application_GetWindowsFromList(i), true);
+ Window currWin = Registry.GetManagedBaseHandleFromNativePtr(Interop.Application.Application_GetWindowsFromList(i)) as Window;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- WindowList.Add(currWin);
+ if(currWin)
+ {
+ WindowList.Add(currWin);
+ }
}
return WindowList;
}
/// <since_tizen> 6 </since_tizen>
public Window(string name, Rectangle windowPosition = null, bool isTranslucent = false) : this(Interop.Window.Window_New__SWIG_0(Rectangle.getCPtr(windowPosition), name, isTranslucent), true)
{
+ this._windowTitle = name;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}