if (savedApplicationThread == null)
{
Tizen.Log.Fatal("NUI", $"Error! maybe main thread is created by other process\n");
- throw new global::System.ApplicationException("Error! maybe main thread is created by other process");
+ return;
+ //throw new global::System.ApplicationException("Error! maybe main thread is created by other process");
}
int currentId = Thread.CurrentThread.ManagedThreadId;
int mainThreadId = savedApplicationThread.ManagedThreadId;
continue;
}
+ if (view is Element)
+ {
+ (view as Element).IsCreateByXaml = true;
+ }
+
var rootnode = new RuntimeRootNode (new XmlType (reader.NamespaceURI, reader.Name, null), view, (IXmlNamespaceResolver)reader);
XamlParser.ParseXaml (rootnode, reader);
Visit (rootnode, new HydrationContext {
return ret;
}
+ /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public View FindChildByName(string viewName)
+ {
+ //to fix memory leak issue, match the handle count with native side.
+ IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
+ HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
+ Interop.BaseHandle.delete_BaseHandle(CPtr);
+ CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
/// <summary>
/// Increments the depth of the layer.
/// </summary>