コード例 #1
0
 public override void Build()
 {
     base.Build();
     Debug.WriteLine("AlphaFeedPage.Rebuild();");
     if (null == Feed)
     {
         Content = new ActivityIndicator
         {
             VerticalOptions   = LayoutOptions.CenterAndExpand,
             HorizontalOptions = LayoutOptions.CenterAndExpand,
             IsRunning         = true,
         };
     }
     else
     {
         Content = new ListView
         {
             HasUnevenRows = true,
             ItemTemplate  = new DataTemplateEx(AlphaFactory.GetFeedEntryCellType()).SetBindingList("Entry"),
             ItemsSource   = Feed?.EntryList?.Select(i => new { Entry = i, }),
         };
     }
 }