Added item to the BottomButtonList after all items are ready. 92/148192/1
authorSung-jae Park <nicesj@nicesj.com>
Thu, 7 Sep 2017 05:21:34 +0000 (14:21 +0900)
committerSung-jae Park <nicesj@nicesj.com>
Thu, 7 Sep 2017 05:21:34 +0000 (14:21 +0900)
Each item group has multiple items, and those items should be added to
the BottomButtonList of the ItemTab.

This patch just defers the building time of the BottomButtonList.

Change-Id: I8576b096b77346e0fd68091860c841058e026719
Signed-off-by: Sung-jae Park <nicesj@nicesj.com>
TVMediaHub/TVMediaHub.Tizen/Views/ImageTab.xaml.cs

index 777b9e2..e17e7d0 100755 (executable)
@@ -347,12 +347,11 @@ namespace TVMediaHub.Tizen.Views
 
                 var group = e.NewItems[0] as GroupItem;
                 ImageGroup galleryGroup = new ImageGroup();
+
                 galleryGroup.PropertyChanged += (se, ev) =>
                 {
-                    if (ev.PropertyName.Equals("X"))
+                    if (ev.PropertyName.Equals("ItemsSource"))
                     {
-                        Console.WriteLine("Group X: {0} {1}", galleryGroup.X, galleryGroup);
-
                         if (galleryGroup.X > 0)
                         {
                             galleryGroup.BottomFocusList.ForEach((item) =>