# C1.Win.TouchToolKit.C1ZoomPanel.InnerPanel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanel_" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.InnerPanel*">InnerPanel Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanel_" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.InnerPanel*"></a>
<h4 id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanel" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.InnerPanel">InnerPanel</h4>
<div class="markdown level1 summary"><p>Gets the inner panel that contains the target form's child controls.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public Panel InnerPanel { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public ReadOnly Property InnerPanel As Panel</code></pre>
</div>
<h5 id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanel_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The inner panel will fill the <a class="xref" href="C1.Win.TouchToolKit.C1ZoomPanel.html">C1ZoomPanel</a> after <a class="xref" href="C1.Win.TouchToolKit.C1ZoomPanel.html">C1ZoomPanel</a> became visible.
So the value of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.capture">Capture</a> property of <a class="xref" href="C1.Win.TouchToolKit.C1ZoomPanel.html">C1ZoomPanel</a> is incorrect, you should use
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.capture">Capture</a> property of inner panel instead.</p>
</div>
<h5 id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanel_examples">Examples</h5>
<p>
  The following code example shows how to use this property.
</p>
<p>
  This code example is part of a larger example provided for the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.Controls.html#C1_Win_TouchToolKit_C1Zoom_Controls">Controls</a> property.
</p>
<pre><code class="lang-csharp">public class GcZoomControlsDemo : Form
{
	private GcZoom _gcZoom1 = new GcZoom();
	private Button _innerPanelButton;

	public GcZoomControlsDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_innerPanelButton.Click += _innerPanelButton_Click;
	}

	void _innerPanelButton_Click(object sender, EventArgs e)
	{
		Console.WriteLine(_gcZoom1.InnerPanel.ToString());
	}

	private void InitializeComponent()
	{
		_innerPanelButton = new Button();
		_innerPanelButton.Text = "InnerPanel";
		_innerPanelButton.Location = new Point(20, 160);
		_innerPanelButton.Size = new Size(120, 25);
		this.Controls.Add(_innerPanelButton);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class GcZoomControlsDemo
	Inherits Form
	Private _gcZoom1 As New GcZoom()
	Private _innerPanelButton As Button

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _innerPanelButton.Click, AddressOf _innerPanelButton_Click
	End Sub

	Private Sub _innerPanelButton_Click(sender As Object, e As EventArgs)
		Console.WriteLine(_gcZoom1.InnerPanel.ToString())
	End Sub

	Private Sub InitializeComponent()
		_innerPanelButton = New Button()
		_innerPanelButton.Text = "InnerPanel"
		_innerPanelButton.Location = New Point(20, 160)
		_innerPanelButton.Size = New Size(120, 25)
		Me.Controls.Add(_innerPanelButton)
	End Sub
End Class</code></pre>

</div>
