[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1ZoomPanel.InnerPanel

InnerPanel Property

InnerPanel

Gets the inner panel that contains the target form's child controls.

Declaration
[Browsable(false)]
public Panel InnerPanel { get; }
Remarks

The inner panel will fill the C1ZoomPanel after C1ZoomPanel became visible. So the value of Capture property of C1ZoomPanel is incorrect, you should use Capture property of inner panel instead.

Examples

The following code example shows how to use this property.

This code example is part of a larger example provided for the Controls property.

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