smeacham

DetailPage.cs

Jun 2nd, 2016
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. using Xamarin.Forms;
  8.  
  9. namespace DrilldownListViewDemoVS
  10. {
  11.     class DetailPage : ContentPage
  12.     {
  13.         public DetailPage(ListItem item)
  14.         {
  15.             Label titleLabel = new Label
  16.             {
  17.                 Text = item.Title,
  18.                 FontSize = 40
  19.             };
  20.  
  21.             Label descriptionLabel = new Label
  22.             {
  23.                 Text = item.Description,
  24.                 FontSize = 40
  25.             };
  26.  
  27.             var stackLayout = new StackLayout
  28.             {
  29.                 Children = { titleLabel, descriptionLabel }
  30.             };
  31.  
  32.             this.Content = stackLayout;
  33.         }
  34.     }
  35. }
Add Comment
Please, Sign In to add comment