using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace WpfApp2 { /// /// Interaction logic for Store.xaml /// public partial class Store : Page { BrushConverter BC = new BrushConverter(); public Store(Widget P) { InitializeComponent(); LoadProduct(P); } private void LoadProduct(Widget P) { SolidColorBrush clr = BC.ConvertFromString(P.Color) as SolidColorBrush; tblkProductName.Text = P.Name; ellProductColor.Fill = clr; } private void btnBack_Click(object sender, RoutedEventArgs e) { NavigationService.GoBack(); } } }