[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1Zoom.IsPanWindowShown

IsPanWindowShown Property

IsPanWindowShown

Gets a value indicating whether the pan window is shown.

Declaration
[Browsable(false)]
public bool IsPanWindowShown { get; }
Property Value
Type Description
bool

true if the pan window is shown; otherwise, false.

Examples

The following code example shows how to use this property.

This code example is part of a larger example provided for the ShowPanWindow() method.

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);
	}
}
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