protected WindowsXamlHostBase(string typeName) : this() { if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { ChildInternal = UWPTypeFactory.CreateXamlContentByType(typeName); ChildInternal.SetWrapper(this); } }
protected WindowsXamlHostBase(string typeName) : this() { if (!DesignMode) { ChildInternal = UWPTypeFactory.CreateXamlContentByType(typeName); ChildInternal.SetWrapper(this); } }
public WindowsXamlHostBaseExt(string typeName) { ChildInternal = UWPTypeFactory.CreateXamlContentByType(typeName); ChildInternal.SetWrapper(this); }
/// <summary> /// Initializes a new instance of the <see cref="UnoXamlHostBase"/> class. /// </summary> /// <remarks> /// Constructor is required for use in WPF markup. When the default constructor is called, /// object properties have not been set. Put WPF logic in OnInitialized. /// </remarks> /// <param name="typeName">UWP XAML Type name</param> public UnoXamlHostBase(string typeName) : this() { ChildInternal = UnoTypeFactory.CreateXamlContentByType(typeName); ChildInternal.SetWrapper(this); }