[NUI] Sync the whole codes to master (#1206)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Controls / Control.cs
index fb6c543..3e491f7 100755 (executable)
@@ -123,7 +123,7 @@ namespace Tizen.NUI.Components
         [EditorBrowsable(EditorBrowsableState.Never)]
         public Control(string styleSheet) : base()
         {
-            ViewStyle viewStyle = StyleManager.Instance.GetAttributes(styleSheet);
+            ViewStyle viewStyle = StyleManager.Instance.GetViewStyle(styleSheet);
             if (viewStyle == null)
             {
                 throw new InvalidOperationException($"There is no style {styleSheet}");
@@ -435,16 +435,5 @@ namespace Tizen.NUI.Components
 
             StyleManager.Instance.ThemeChangedEvent += OnThemeChangedEvent;
         }
-
-        private ViewStyle GetAttributes(string style)
-        {
-            ViewStyle attributes = StyleManager.Instance.GetAttributes(style);
-            if(attributes == null)
-            {
-                throw new InvalidOperationException($"There is no style {style}");
-            }
-            this.style = style;
-            return attributes;
-        }
     }
 }