Add Window.Title property. 22/145622/3
authorminho.sun <minho.sun@samsung.com>
Wed, 23 Aug 2017 06:33:30 +0000 (15:33 +0900)
committerminho.sun <minho.sun@samsung.com>
Fri, 25 Aug 2017 04:42:55 +0000 (13:42 +0900)
To set window title, we can use SetClass function.
But most of app user doesn't know concept of 'klass'.
So, to give convenience, make property.

Change-Id: Idec1c8de60220eba153f2e980dfeda903b7c1ab9
Signed-off-by: minho.sun <minho.sun@samsung.com>
Tizen.NUI/src/public/Window.cs

index 53a1dca..b22dc50 100755 (executable)
@@ -30,6 +30,7 @@ namespace Tizen.NUI
         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
         private global::System.Runtime.InteropServices.HandleRef stageCPtr;
         private Layer _rootLayer;
+        private string _windowTitle;
 
         internal Window(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Window_SWIGUpcast(cPtr), cMemoryOwn)
         {
@@ -423,6 +424,22 @@ namespace Tizen.NUI
             }
         }
 
+        /// <summary>
+        /// Gets/Sets a window title.
+        /// </summary>
+        public string Title
+        {
+            get
+            {
+                return _windowTitle;
+            }
+            set
+            {
+                _windowTitle = value;
+                SetClass( _windowTitle, "" );
+            }
+        }
+
         internal WindowFocusSignalType WindowFocusChangedSignal()
         {
             WindowFocusSignalType ret = new WindowFocusSignalType(NDalicPINVOKE.FocusChangedSignal(swigCPtr), false);