Bonjour à tous
je suis débutante en c# donc je sais bien manipuler ce langage.Bon je veux créer dnamiquement un bouton transparent avec c# et je n'arrive pas à trouver la bonne solution.
Voici mon code y'a -t-il qlq qui pourra m'aider
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 private void createButtonInWindow(Window ecran)
        {
            Button btnInWindow = new Button();
           this.Name = "BoutonInWindow";
            btnInWindow.Content = "";
            btnInWindow.Background = new SolidColorBrush(Colors.Transparent);
            btnInWindow.Width = 1024;
            btnInWindow.Height = 768;
            btnInWindow.Opacity = 0;
            btnInWindow.Click += new EventHandler(btnInWindow_Click);
            this.Controls.Add(btnInWindow);}