Follow formatting NUI
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / XamlBinding / ResourceDictionary.cs
index 4f9f30f..31c2da3 100755 (executable)
@@ -38,9 +38,11 @@ namespace Tizen.NUI.Binding
         [EditorBrowsable(EditorBrowsableState.Never)]
         [TypeConverter(typeof(TypeTypeConverter))]
         [Obsolete("Use Source")]
-        public Type MergedWith {
+        public Type MergedWith
+        {
             get { return _mergedWith; }
-            set {
+            set
+            {
                 if (_mergedWith == value)
                     return;
 
@@ -65,9 +67,11 @@ namespace Tizen.NUI.Binding
         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
         [TypeConverter(typeof(RDSourceTypeConverter))]
-        public Uri Source {
+        public Uri Source
+        {
             get { return _source; }
-            set {
+            set
+            {
                 if (_source == value)
                     return;
                 throw new InvalidOperationException("Source can only be set from XAML."); //through the RDSourceTypeConverter
@@ -102,9 +106,12 @@ namespace Tizen.NUI.Binding
 
         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public ICollection<ResourceDictionary> MergedDictionaries {
-            get {
-                if (_mergedDictionaries == null) {
+        public ICollection<ResourceDictionary> MergedDictionaries
+        {
+            get
+            {
+                if (_mergedDictionaries == null)
+                {
                     var col = new ObservableCollection<ResourceDictionary>();
                     col.CollectionChanged += MergedDictionaries_CollectionChanged;
                     _mergedDictionaries = col;
@@ -117,10 +124,11 @@ namespace Tizen.NUI.Binding
 
         void StyleSheetsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
         {
-            switch (e.Action) {
-            case NotifyCollectionChangedAction.Add:
+            switch (e.Action)
+            {
+                case NotifyCollectionChangedAction.Add:
                     ValuesChanged?.Invoke(this, ResourcesChangedEventArgs.StyleSheets);
-                break;
+                    break;
             }
         }
         IList<ResourceDictionary> _collectionTrack;
@@ -133,7 +141,8 @@ namespace Tizen.NUI.Binding
 
             _collectionTrack = _collectionTrack ?? new List<ResourceDictionary>();
             // Collection has been cleared
-            if (e.Action == NotifyCollectionChangedAction.Reset) {
+            if (e.Action == NotifyCollectionChangedAction.Reset)
+            {
                 foreach (var dictionary in _collectionTrack)
                     dictionary.ValuesChanged -= Item_ValuesChanged;
 
@@ -288,8 +297,10 @@ namespace Tizen.NUI.Binding
             return _innerDictionary.GetEnumerator();
         }
 
-        internal IEnumerable<KeyValuePair<string, object>> MergedResources {
-            get {
+        internal IEnumerable<KeyValuePair<string, object>> MergedResources
+        {
+            get
+            {
                 if (MergedDictionaries != null)
                     foreach (var r in MergedDictionaries.Reverse().SelectMany(x => x.MergedResources))
                         yield return r;