Follow formatting NUI
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / XamlBinding / MergedStyle.cs
index 7c2469b..8810ed2 100755 (executable)
@@ -53,13 +53,15 @@ namespace Tizen.NUI.Binding
 
                 _styleClass = value;
 
-                if (_styleClass != null) {
-                    _classStyleProperties = new List<BindableProperty> ();
-                    foreach (var styleClass in _styleClass) {
-                        var classStyleProperty = BindableProperty.Create ("ClassStyle", typeof(IList<Style>), typeof(View), default(IList<Style>),
+                if (_styleClass != null)
+                {
+                    _classStyleProperties = new List<BindableProperty>();
+                    foreach (var styleClass in _styleClass)
+                    {
+                        var classStyleProperty = BindableProperty.Create("ClassStyle", typeof(IList<Style>), typeof(View), default(IList<Style>),
                             propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.OnClassStyleChanged());
-                        _classStyleProperties.Add (classStyleProperty);
-                        Target.OnSetDynamicResource (classStyleProperty, Tizen.NUI.Binding.Style.StyleClassPrefix + styleClass);
+                        _classStyleProperties.Add(classStyleProperty);
+                        Target.OnSetDynamicResource(classStyleProperty, Tizen.NUI.Binding.Style.StyleClassPrefix + styleClass);
                     }
                 }
             }
@@ -101,7 +103,7 @@ namespace Tizen.NUI.Binding
 
         void OnClassStyleChanged()
         {
-            ClassStyles = _classStyleProperties.Select (p => (Target.GetValue (p) as IList<Style>)?.FirstOrDefault (s => s.CanBeAppliedTo (TargetType))).ToList ();
+            ClassStyles = _classStyleProperties.Select(p => (Target.GetValue(p) as IList<Style>)?.FirstOrDefault(s => s.CanBeAppliedTo(TargetType))).ToList();
         }
 
         void OnImplicitStyleChanged()
@@ -129,7 +131,8 @@ namespace Tizen.NUI.Binding
             {
                 return;
             }
-            while (true) {
+            while (true)
+            {
                 BindableProperty implicitStyleProperty = BindableProperty.Create(nameof(ImplicitStyle), typeof(Style), typeof(View), default(Style),
                         propertyChanged: (bindable, oldvalue, newvalue) => OnImplicitStyleChanged());
                 _implicitStyles.Add(implicitStyleProperty);