im new in C#. i cannot solve this problem. i add dynamic textblocks with a "Hesapla" button. but texts color darker than others like pixel pixel(end of the picture)

enter image description here

my code under the click event

 for (int i = 0; i < cubuksayisi; i++)
        {
            double konumust = i * 30;

            cbknolaryaz3[i] = new TextBlock
            {
                Name = "cbknolar3" + i.ToString(),
                Text = (i + 1).ToString() + " . Çubuk",
                Margin = new Thickness(0, konumust, 0, 0),
                Width = 110,
                VerticalAlignment = VerticalAlignment.Top,
                HorizontalAlignment = HorizontalAlignment.Left
            };
            cbknolar3.Children.Add(cbknolaryaz3[i]);

            delxtosc[i] = new TextBlock
            {
                Name="delx"+ i.ToString(),
                Text = Convert.ToString(delx[i]),
                Margin = new Thickness(0, konumust, 0, 0),
                Width = 110,
                VerticalAlignment = VerticalAlignment.Top,
                HorizontalAlignment = HorizontalAlignment.Left
            };
            delxler.Children.Add(delxtosc[i]);

            delytosc[i] = new TextBlock
            {
                Name = "dely" + i.ToString(),
                Text = Convert.ToString(dely[i]),
                Margin = new Thickness(0, konumust, 0, 0),
                Width = 110,
                VerticalAlignment = VerticalAlignment.Top,
                HorizontalAlignment = HorizontalAlignment.Left
            };
            delyler.Children.Add(delytosc[i]);

            Ltosc[i] = new TextBlock
            {
                Name = "L" + i.ToString(),
                Text = Convert.ToString(L[i]),
                Margin = new Thickness(0, konumust, 0, 0),
                Width = 110,
                VerticalAlignment = VerticalAlignment.Top,
                HorizontalAlignment = HorizontalAlignment.Left
            };
            Ller.Children.Add(Ltosc[i]);

            acitosc[i] = new TextBlock
            {
                Name = "Aci" + i.ToString(),
                Text = Convert.ToString(aci[i]*180/Math.PI),
                Margin = new Thickness(0, konumust, 0, 0),
                Width = 110,
                VerticalAlignment = VerticalAlignment.Top,
                HorizontalAlignment = HorizontalAlignment.Left
            };
            acilar.Children.Add(acitosc[i]);

0 Answers