From: Wonsik Jung Date: Mon, 1 Jul 2024 01:57:38 +0000 (+0900) Subject: [NUI] Add sample and description for window modal and always on top. X-Git-Tag: submit/tizen/20240702.074605~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=feedf8a66b57aec079fc215f3db59f44ff7419cd;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add sample and description for window modal and always on top. Add sample for window modal and always on top property to Tizen.NUI.Samples. In addition, the description is added to window modal. --- diff --git a/src/Tizen.NUI/src/public/Window/Window.cs b/src/Tizen.NUI/src/public/Window/Window.cs index 7da18bcb5..c297b3d90 100755 --- a/src/Tizen.NUI/src/public/Window/Window.cs +++ b/src/Tizen.NUI/src/public/Window/Window.cs @@ -2517,6 +2517,8 @@ namespace Tizen.NUI /// /// Gets or sets a value indicating whether the window is modal or not. + /// The modal property of a window requires that it be set to a parent window. + /// The window modal function operates on the specified parent window. /// [EditorBrowsable(EditorBrowsableState.Never)] public bool IsModal diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/WindowTest1.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/WindowTest1.cs index 6325880f4..bc61186a1 100644 --- a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/WindowTest1.cs +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/WindowTest1.cs @@ -539,9 +539,33 @@ namespace Tizen.NUI.Samples break; case KEY_NUM_6: + log.Fatal(tag, $"Modal window Test"); + if(mainWin.IsModal) + { + log.Fatal(tag, $"current modal is true and change to false"); + subWindow.Unparent(); + subWindow.IsModal = false; + } + else + { + log.Fatal(tag, $"current modal is false and change to true"); + subWindow.SetParent(mainWin); + subWindow.IsModal = true; + } break; case KEY_NUM_7: + log.Fatal(tag, $"Always On Top Window Test"); + if(mainWin.IsAlwaysOnTop) + { + log.Fatal(tag, $"current AlwaysOnTop is true and change to false"); + subWindow.IsAlwaysOnTop = false; + } + else + { + log.Fatal(tag, $"current AlwaysOnTop is false and change to true"); + subWindow.IsAlwaysOnTop = true; + } break; case KEY_NUM_8: