Ejemplo n.º 1
0
 public void UpdateListView(List<string> dataList)
 {
     listview_list.Items.Clear();
     listItem = new List<FloatingListItem>();
     FloatingListItem item;
     foreach (string str in dataList)
     {
         item = new FloatingListItem() { ValueStr = str };
         listview_list.Items.Add(item);
     }
     this.Visibility = dataList.Count() > 0 ? Windows.UI.Xaml.Visibility.Visible : Windows.UI.Xaml.Visibility.Collapsed;
 }
Ejemplo n.º 2
0
 public void UpdateListView(List<string> dataList)
 {
     listview_list.Items.Clear();
     listItem = new List<FloatingListItem>();
     FloatingListItem item;
     foreach (string str in dataList)
     {
         item = new FloatingListItem() { ValueStr = str };
         listview_list.Items.Add(item);
     }
     this.IsOpen = dataList.Count() > 0 ? true : false;
 }