예제 #1
0
 public void UpdateDropBoxData(DropBoxRow dropBoxContent)
 {
     if (dropBoxContent.Title != null)
     {
         LblTitle.Text = $"Title: {dropBoxContent.Title}";
     }
     if (dropBoxContent.Description != null)
     {
         LblDescription.Text = $"Description: {dropBoxContent.Description}";
     }
     if (dropBoxContent.ImageHref != null)
     {
         try
         {
             if (Imageview.Image == null)
             {
                 Imageview.Image = dropBoxContent.ImageHref.FromUrl();
             }
         }
         catch (Exception ex)
         {
             Imageview.Image = UIImage.FromBundle("Noimage");
         }
     }
     else
     {
         Imageview.Image = UIImage.FromBundle("Noimage");
     }
     LblTitle.TextColor       = UIColor.DarkTextColor;
     LblDescription.TextColor = UIColor.DarkTextColor;
 }
예제 #2
0
        public void UpdateDropBoxData(DropBoxRow dropBoxContent)
        {
            if (dropBoxContent.Title != null)
            {
                LblTitle.Text = $"Title: {dropBoxContent.Title}";
            }
            if (dropBoxContent.Description != null)
            {
                LblDescription.Text = $"Description: {dropBoxContent.Description}";
            }

            LblTitle.TextColor       = UIColor.DarkTextColor;
            LblDescription.TextColor = UIColor.DarkTextColor;
        }