Files
docs-desktop/dotnet-desktop-guide/framework/wpf/controls/how-to-make-sure-that-a-gridsplitter-is-visible.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

2.6 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Make Sure That a GridSplitter Is Visible 03/30/2017
GridSplitter control [WPF], ensuring visibility of
0a62a964-89c8-48f0-9023-5df721a8cf47

How to: Make Sure That a GridSplitter Is Visible

This example shows how to make sure a xref:System.Windows.Controls.GridSplitter control is not hidden by the other controls in a xref:System.Windows.Controls.Grid.

Example

The xref:System.Windows.Controls.Panel.Children%2A of a xref:System.Windows.Controls.Grid control are rendered in the order that they are defined in markup or code. xref:System.Windows.Controls.GridSplitter controls can be hidden by other controls if you do not define them as the last elements in the xref:System.Windows.Controls.Panel.Children%2A collection or if you give other controls a higher xref:System.Windows.Controls.Panel.ZIndexProperty.

To prevent hidden xref:System.Windows.Controls.GridSplitter controls, do one of the following.

[!code-xamlGridSplitterSnips#GridSplitterLastChild]

[!code-xamlGridSplitterSnips#GridSplitterZIndex]

[!code-xamlGridSplitterSnips#GridSplitterMargin]

See also