From 8af8063ac5342e3874e632d3c74cdaa0732ff155 Mon Sep 17 00:00:00 2001 From: Alexandre Agostinho Date: Sat, 8 Apr 2023 19:20:14 +0200 Subject: [PATCH] improve RecipeCase by bind only the ImageSource property --- MCTG/Views/Home.xaml | 44 +++++++---------------------------- MCTG/Views/RecipeCase.xaml | 4 ++-- MCTG/Views/RecipeCase.xaml.cs | 10 ++++---- 3 files changed, 16 insertions(+), 42 deletions(-) diff --git a/MCTG/Views/Home.xaml b/MCTG/Views/Home.xaml index c3c8ffd..aa48635 100644 --- a/MCTG/Views/Home.xaml +++ b/MCTG/Views/Home.xaml @@ -41,41 +41,15 @@ AlignItems="Center" AlignContent="SpaceEvenly"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + diff --git a/MCTG/Views/RecipeCase.xaml b/MCTG/Views/RecipeCase.xaml index 890a567..6777185 100644 --- a/MCTG/Views/RecipeCase.xaml +++ b/MCTG/Views/RecipeCase.xaml @@ -8,9 +8,9 @@ - + Source="{Binding CaseImageSource, Source={x:Reference rCase}}"/>