Questions tagged [rowdefinition]

Defines row-specific properties that apply to Grid elements.

20 questions
4
votes
1 answer

In WPF, how can I get the RowDefinition object from the UIElement that belongs to it?

Take the following window layout for example: There is a Grid element defined. It has 3 rows. Each row has one Button element. How do I get the RowDefinition object of the Button it belongs to? Thanks. NOTE: By calling Grid.GetRow(Button element),…
Boris
  • 9,986
  • 34
  • 110
  • 147
2
votes
1 answer

Designing Grid wpf

I'm programming in C#(WPF). I use Grid with 4 row as below: