Esempio n. 1
0
        private void StudentCard_OnMouseDown(object sender, MouseButtonEventArgs e)
        {
            StudentCon = new StudentCon();
            MyGrid.Children.Add(StudentCon);
            var bc = new BrushConverter();

            StudentCard.Background = (Brush)bc.ConvertFrom("#ff80ab");

            SubjectCart.Background = Brushes.LightPink;
        }
Esempio n. 2
0
        public ElementCon()
        {
            InitializeComponent();


            StudentCon = new StudentCon();
            MyGrid.Children.Add(StudentCon);
            var bc = new BrushConverter();

            StudentCard.Background = (Brush)bc.ConvertFrom("#ff80ab");
        }