protected WindowsXamlHostBase(string typeName)
     : this()
 {
     if (LicenseManager.UsageMode == LicenseUsageMode.Runtime)
     {
         ChildInternal = UWPTypeFactory.CreateXamlContentByType(typeName);
         ChildInternal.SetWrapper(this);
     }
 }
Exemplo n.º 2
0
 protected WindowsXamlHostBase(string typeName)
     : this()
 {
     if (!DesignMode)
     {
         ChildInternal = UWPTypeFactory.CreateXamlContentByType(typeName);
         ChildInternal.SetWrapper(this);
     }
 }
Exemplo n.º 3
0
 public WindowsXamlHostBaseExt(string typeName)
 {
     ChildInternal = UWPTypeFactory.CreateXamlContentByType(typeName);
     ChildInternal.SetWrapper(this);
 }
Exemplo n.º 4
0
 /// <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);
 }