Grid.ShowGridLines 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示网格线是否在此范围内 Grid可见。
public:
property bool ShowGridLines { bool get(); void set(bool value); };
public bool ShowGridLines { get; set; }
member this.ShowGridLines : bool with get, set
Public Property ShowGridLines As Boolean
属性值
true 如果网格线可见,则为否则,为 false. 默认值为 false。
注解
启用网格线会在一个 Grid内的所有元素周围创建虚线。 只有虚线可用,因为此属性旨在用作调试布局问题的设计工具,并且不适用于生产质量代码。 如果希望内 Grid有线条,请设置元素的 Grid 样式以具有边框。
Dependency 属性信息
| 项目 | 价值 |
|---|---|
| 标识符字段 | ShowGridLinesProperty |
元数据属性设置为 true |
None |