/// <summary> /// The constructor with stylesheet and window mode. /// </summary> public NUIApplication(string stylesheet, WindowMode windowMode) : base() { //handle the stylesheet and windowMode _appMode = AppMode.StyleSheetWithWindowMode; _stylesheet = stylesheet; _windowMode = (Application.WindowMode)windowMode; }
public static Application New(int argc, string stylesheet, Application.WindowMode windowMode, Rectangle positionSize) { Application ret = new Application(Interop.Application.Application_New__SWIG_4(argc, stylesheet, (int)windowMode, Rectangle.getCPtr(positionSize)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static Application NewApplication(string[] args, string stylesheet, Application.WindowMode windowMode) { Application ret = New(args, stylesheet, (Application.WindowMode)windowMode); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } // set the singleton _instance = ret; return(_instance); }
public static Application New(string[] args, string stylesheet, Application.WindowMode windowMode) { int argc = args.Length; string argvStr = string.Join(" ", args); Application ret = new Application(NDalicPINVOKE.Application_New__MANUAL_4(argc, argvStr, stylesheet, (int)windowMode), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static Application NewApplication(string stylesheet, Application.WindowMode windowMode) { // register all Views with the type registry, so that can be created / styled via JSON //ViewRegistryHelper.Initialize(); //moved to Application side. Application ret = New(1, stylesheet, windowMode); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } // set the singleton _instance = ret; return(ret); }