Blek44
Blek44

Reputation: 41

Visual studio 2015 Properties panel

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.

  1. Are some properties available only from xaml editor?
  2. Is there a way to find it on properties panel also?

Upvotes: 4

Views: 196

Answers (2)

John Mellor
John Mellor

Reputation: 181

  1. I'm not entirely sure, but some are definitely easier to use from XAML.

  2. It is in the layout properties (see picture).

Grid.Rowspan in VS Properties

Upvotes: 1

Pedro G. Dias
Pedro G. Dias

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

Related Questions