commit
471db46fd8
@ -1,18 +1,32 @@
|
|||||||
namespace Views;
|
namespace Views;
|
||||||
|
|
||||||
public partial class RecipeCase : ContentView
|
public partial class RecipeCase : ContentView
|
||||||
{
|
{
|
||||||
public RecipeCase()
|
public RecipeCase()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly BindableProperty CaseImageSourceProperty =
|
public static readonly BindableProperty CaseImageSourceProperty =
|
||||||
BindableProperty.Create("CaseImageSource", typeof(ImageSource), typeof(Image));
|
BindableProperty.Create("CaseImageSource", typeof(ImageSource), typeof(Image));
|
||||||
|
|
||||||
public ImageSource CaseImageSource
|
public ImageSource CaseImageSource
|
||||||
{
|
{
|
||||||
get => (ImageSource)GetValue(CaseImageSourceProperty);
|
get => (ImageSource)GetValue(CaseImageSourceProperty);
|
||||||
set => SetValue(CaseImageSourceProperty, value);
|
set => SetValue(CaseImageSourceProperty, value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
public static readonly BindableProperty RecipeTitleProperty =
|
||||||
|
BindableProperty.Create("RecipeTitle", typeof(string), typeof(Label));
|
||||||
|
|
||||||
|
public string RecipeTitle
|
||||||
|
{
|
||||||
|
get => (string)GetValue(RecipeTitleProperty);
|
||||||
|
set => SetValue(RecipeTitleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void ImageButton_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PushModalAsync(new ViewRecette());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,19 +1,24 @@
|
|||||||
namespace Views;
|
namespace Views;
|
||||||
|
|
||||||
public partial class ReturnButton : ContentView
|
public partial class ReturnButton : ContentView
|
||||||
{
|
{
|
||||||
public ReturnButton()
|
public ReturnButton()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
// bind NeedReturn
|
// bind NeedReturn
|
||||||
public static readonly BindableProperty NeedReturnProperty =
|
public static readonly BindableProperty NeedReturnProperty =
|
||||||
BindableProperty.Create("NeedReturn", typeof(bool), typeof(Border), false);
|
BindableProperty.Create("NeedReturn", typeof(bool), typeof(Border), false);
|
||||||
|
|
||||||
public bool NeedReturn
|
public bool NeedReturn
|
||||||
{
|
{
|
||||||
get => (bool)GetValue(NeedReturnProperty);
|
get => (bool)GetValue(NeedReturnProperty);
|
||||||
set => SetValue(NeedReturnProperty, value);
|
set => SetValue(NeedReturnProperty, value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
private async void ImageButton_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in new issue