3 using Xamarin.Forms.Pages;
5 namespace Xamarin.Forms.Pages
7 public class CardView : DataView
9 public static readonly BindableProperty TextProperty =
10 BindableProperty.Create(nameof(Text), typeof(string), typeof(CardView), null, BindingMode.OneWay);
14 get { return (string)GetValue(TextProperty); }
15 set { SetValue(TextProperty, value); }
18 public static readonly BindableProperty DetailProperty =
19 BindableProperty.Create(nameof(Detail), typeof(string), typeof(CardView), null, BindingMode.OneWay);
23 get { return (string)GetValue(DetailProperty); }
24 set { SetValue(DetailProperty, value); }
27 public static readonly BindableProperty ImageSourceProperty =
28 BindableProperty.Create(nameof(ImageSource), typeof(ImageSource), typeof(CardView), null, BindingMode.OneWay);
30 public ImageSource ImageSource
32 get { return (ImageSource)GetValue(ImageSourceProperty); }
33 set { SetValue(ImageSourceProperty, value); }