Bonjour,

(débutant WPF mais vous le verrai)
Je cherche à redessiner ça :


J'ai placé un Rectangle côté XAML et y suis arrivé pour le dégrader :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
LinearGradientBrush myBrush = new LinearGradientBrush();
myBrush.StartPoint = new Point(0.5, 0);
myBrush.EndPoint = new Point(0.5, 1);
 
myBrush.GradientStops.Add(new GradientStop(Color.FromRgb(215, 209, 245), 0.0));
myBrush.GradientStops.Add(new GradientStop(Color.FromRgb(104, 78, 249), 1.0));
 
rectangle1.Fill = myBrush;
Mais comment faire pour y ajouter le rectangle jaune ?