using Model; using System.Diagnostics; using Microsoft.Maui.Media; namespace Views { public partial class AddRecipe : ContentPage { public MasterManager Master => (Application.Current as App).Master; public List UnitList { get; set; } = new List { Unit.unit, Unit.kG, Unit.mG, Unit.G, Unit.L, Unit.cL, Unit.mL }; public bool IsCaptureSupported => throw new NotImplementedException(); public AddRecipe() { InitializeComponent(); BindingContext = this; } private void PickPhoto (object sender, EventArgs e) { MediaPicker.PickPhotoAsync(); } } }