Example #1
0
        public MeasurementDetailPage(MeasurementDetailViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = this.viewModel = viewModel;

            image.Source = ImageSource.FromFile(viewModel.Item.PhotoClientPath);
        }
Example #2
0
        public MeasurementDetailPage()
        {
            InitializeComponent();

            var item = new TMeasurement
            {
                Text        = "Item 1",
                Description = "This is an item description."
            };

            viewModel      = new MeasurementDetailViewModel(item);
            BindingContext = viewModel;
        }
Example #3
0
 public MeasurementDetailPage(Measurement measurementItem)
 {
     _viewModel = new MeasurementDetailViewModel();
     InitializeComponent();
     _viewModel.CurrentMeasurementId = measurementItem.MeasurementId;
     _viewModel.AccessLevel          = measurementItem.AccessLevel;
     _viewModel.Height        = measurementItem.Height.ToString(CultureInfo.CurrentCulture);
     _viewModel.Weight        = measurementItem.Weight.ToString(CultureInfo.CurrentCulture);
     _viewModel.Circumference = measurementItem.Circumference.ToString(CultureInfo.CurrentCulture);
     _viewModel.HairColor     = measurementItem.HairColor;
     _viewModel.EyeColor      = measurementItem.EyeColor;
     _viewModel.Date          = measurementItem.Date;
     BindingContext           = _viewModel;
 }
 public MeasurementDetailView()
 {
     InitializeComponent();
     BindingContext = new MeasurementDetailViewModel();
 }