# C1.Win.TouchToolKit.C1Zoom.IsPanWindowShown

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1Zoom_IsPanWindowShown_" data-uid="C1.Win.TouchToolKit.C1Zoom.IsPanWindowShown*">IsPanWindowShown Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1Zoom_IsPanWindowShown_" data-uid="C1.Win.TouchToolKit.C1Zoom.IsPanWindowShown*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_IsPanWindowShown" data-uid="C1.Win.TouchToolKit.C1Zoom.IsPanWindowShown">IsPanWindowShown</h4>
<div class="markdown level1 summary"><p>Gets a value indicating whether the pan window is shown.</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 bool IsPanWindowShown { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public ReadOnly Property IsPanWindowShown As Boolean</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the pan window is shown; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_IsPanWindowShown_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.ShowPanWindow.html#C1_Win_TouchToolKit_C1Zoom_ShowPanWindow">ShowPanWindow()</a> method. 
</p>
<pre><code class="lang-csharp">public class PanWindowDemo : Form
{
	private Button _isShowPanWindowButton;
	private GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_isShowPanWindowButton.Click += _isShowPanWindowButton_Click;
	}

	void _isShowPanWindowButton_Click(object sender, EventArgs e)
	{
		if (_gcZoom1.IsPanWindowShown)
		{
			Console.WriteLine("PanWindow is Shown");
		}
		else
		{
			Console.WriteLine("PanWindow is Closed");
		}
	}

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

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _isShowPanWindowButton.Click, AddressOf _isShowPanWindowButton_Click
	End Sub

	Private Sub _isShowPanWindowButton_Click(sender As Object, e As EventArgs)
		If _gcZoom1.IsPanWindowShown Then
			Console.WriteLine("PanWindow is Shown")
		Else
			Console.WriteLine("PanWindow is Closed")
		End If
	End Sub

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