/// <summary> /// Initializes a new instance of the <see cref="Display"/> class with a <see cref="NUI.Window"/> class. /// </summary> /// <param name="window">A <see cref="NUI.Window"/> to display.</param> /// <remarks> /// The <see cref="NUI.Window.BackgroundColor"/> must be <see cref="NUI.Color.Transparent"/> /// for the <see cref="Display"/> to be rendered correctly. /// </remarks> /// <since_tizen> 3 </since_tizen> public Display(NUI.Window window) { if (window == null) { throw new ArgumentNullException(nameof(window)); } _setter = new EcoreDisplaySetter(window.GetNativeWindowHandler()); }
/// <summary> /// Initializes a new instance of the <see cref="Display"/> class with a <see cref="NUI.Window"/> class. /// </summary> /// <param name="window">A <see cref="NUI.Window"/> to display.</param> /// <remarks> /// The <see cref="NUI.Window.BackgroundColor"/> must be <see cref="NUI.Color.Transparent"/> /// for the <see cref="Display"/> to be rendered correctly. /// </remarks> /// <since_tizen> 3 </since_tizen> public Display(NUI.Window window) : this(window, false) { }