Amit Padhiyar

Amit Padhiyar

  • 965
  • 440
  • 5.8k

How to set padded / wrap textblock on grid with column and row in WPF

Sep 12 2020 8:10 AM
Padded textblock with new row on grid WPF.
 
 
 
I try to set this like below code but it is not enough for me. See below code.
 
TextBlock TB = new TextBlock();
TB.Text = "Too long long long long text....";
Grid.SetColum(TB,4);
Grid.SetRow(TB,1);
Grid.SetColumnSpan(TB, 3);
Grid.SetRowSpan(TB,2); 
Grid.Children.Add(TB);
 
Show me some solution if anyone have.....

Answers (1)