private Label CreateMoveLabel(IMoves move)
 {
     return(new Label()
     {
         Content = move.ToString(),
         Background = new SolidColorBrush(Colors.LightGray)
     });
 }
        public void CreateLabel(int x, int y, int i, int lijnNmr, IMoves huidigeMove)

        {
            TextBox move = new TextBox();

            if (huidigeMove != null)
            {
                move.Text            = huidigeMove.ToString();
                move.Background      = Brushes.Transparent;
                move.BorderThickness = new Thickness(0);
                myCanvas.Children.Add(move);
            }

            TextBox text = new TextBox();

            text.Text            = $"{lijnNmr}";
            text.Background      = Brushes.Transparent;
            text.BorderThickness = new Thickness(0);
            myCanvas.Children.Add(text);

            if (i < 5)
            {
                Canvas.SetRight(text, (x + 10));
                Canvas.SetTop(text, (y - 25));
                Canvas.SetRight(move, x);
                Canvas.SetTop(move, y + 25);
            }
            else
            {
                Canvas.SetLeft(text, (x + 10));
                Canvas.SetTop(text, (y + 25));
                Canvas.SetLeft(move, x);
                Canvas.SetTop(move, y - 25);
            }

            TextBoxes.Add(text);
            TextBoxes.Add(move);
        }