diff --git a/Views/FavoritesPage.xaml b/Views/FavoritesPage.xaml
index 2d9bc1b..5aa1b63 100644
--- a/Views/FavoritesPage.xaml
+++ b/Views/FavoritesPage.xaml
@@ -38,16 +38,16 @@
Direction="Row"
Wrap="Wrap">
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/Views/RecipeView.xaml b/Views/RecipeView.xaml
index a8e6c8e..5b051ee 100644
--- a/Views/RecipeView.xaml
+++ b/Views/RecipeView.xaml
@@ -48,10 +48,10 @@
+ x:Name="TitleLabel"/>
+ x:Name="SubtitleLabel"/>
diff --git a/Views/RecipeView.xaml.cs b/Views/RecipeView.xaml.cs
index 65035dd..8dcd0ea 100644
--- a/Views/RecipeView.xaml.cs
+++ b/Views/RecipeView.xaml.cs
@@ -3,32 +3,35 @@ namespace ShoopNCook.Views;
public partial class RecipeView : ContentView
{
- private readonly BindableProperty NoteProperty;
-
- public float Note {
- get => (float) GetValue(NoteProperty);
- set => SetValue(NoteProperty, value);
- }
-
- public RecipeView(): this(5)
+ public RecipeView(): this(5, "Title", "Subtitle")
{}
- public RecipeView(float note)
+ public RecipeView(float note, string title, string subtitle)
{
InitializeComponent();
- NoteProperty = BindableProperty.Create(
- nameof(Note),
- typeof(float),
- typeof(RecipeView),
- 0F,
- propertyChanged: (_, _, v) => UpdateNotes((float) v)
- );
-
Note = note;
+ Title = title;
+ Subtitle = subtitle;
}
- private void UpdateNotes(float note)
+ public float Note
+ {
+ set => SetNote(value);
+ }
+
+ public string Title
+ {
+ set => TitleLabel.Text = value;
+ }
+
+ public string Subtitle
+ {
+ set => SubtitleLabel.Text = value;
+ }
+
+
+ private void SetNote(float note)
{
int i = 1;
foreach (Image img in Stars.Children)