简体   繁体   English

Visual Studio 2015属性面板

[英]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: 我正在阅读关于c# wpf项目的教程,并且在某些时候它告诉我在项目上放置一个tab控件并设置它的属性如下:

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. 我的新手问题是我无法在属性面板上找到Grid.RowSpan属性以便更改它。

  1. Are some properties available only from xaml editor? 某些属性是否只能从xaml编辑器中获得?
  2. Is there a way to find it on properties panel also? 有没有办法在属性面板上找到它?

You tabcontrol goes inside the page's grid, so the Grid.RowSpan property is inherited from that. tabcontrol进入页面的网格,因此Grid.RowSpan属性继承自该网格。

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? RowSpan写的是资本“R”和“S”顺便说一下,可能不是吗?

  1. I'm not entirely sure, but some are definitely easier to use from XAML. 我不完全确定,但有些肯定更容易使用XAML。

  2. It is in the layout properties (see picture). 它位于布局属性中(见图片)。

Grid.Rowspan in VS Properties VS Properties中的Grid.Rowspan

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM