Reputation: 41
I'm reading a tutorial about c# wpf
projects and at some point it tells me to put a tab control on my project and set its properties like this:
Grid.RowSpan="2" Canvas.Left="10" Canvas.Top="2" Width="408" Height="208" Grid.Row="1"
My novice problem is that I cannot find Grid.RowSpan
property on properties panel in order to change it.
Upvotes: 4
Views: 196
Reputation: 181
I'm not entirely sure, but some are definitely easier to use from XAML.
It is in the layout properties (see picture).
Upvotes: 1
Reputation: 3222
You tabcontrol goes inside the page's grid, so the Grid.RowSpan property is inherited from that.
Additionally, you may have defined some rows in your grid in a way similar to this:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
So, basically, that should work. RowSpan is written with Capital "R" and "S" btw, could htat be it?
Upvotes: 1