# C1.Win.TouchToolKit.C1ApplicationZoom

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_TouchToolKit_C1ApplicationZoom" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom" class="text-break">C1ApplicationZoom Class
</h1>
  <div class="markdown level0 summary"><p>Represents the component which can be attached to any existing form, and made all forms in current application can be zoom by two finger touch.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><span class="xref">C1ApplicationZoom</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.TouchToolKit.html">C1.Win.TouchToolKit</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.TouchToolKit.10.dll</h6>
  <h5 id="C1_Win_TouchToolKit_C1ApplicationZoom_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(C1ApplicationZoom), &quot;ApplicationZoom.png&quot;)]
public class C1ApplicationZoom : Component, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(C1ApplicationZoom), &quot;ApplicationZoom.png&quot;)&gt;
Public Class C1ApplicationZoom
    Inherits Component
    Implements IComponent, IDisposable</code></pre>
  </div>
  <h5 id="C1_Win_TouchToolKit_C1ApplicationZoom_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>
The <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.html">C1ApplicationZoom</a> will try to find all forms in current application, and then attach a <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a>
component to the found forms. Before attach <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.html">C1ApplicationZoom</a> will initialize the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a>'s setting by 
this own settings. 
And then raise <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttaching.html">C1ZoomAttaching</a> and <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttached.html">C1ZoomAttached</a> event. 
User can change the initial in this events' event handler and user can cancel attach
in <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttaching.html">C1ZoomAttaching</a> event by set <a class="xref" href="C1.Win.TouchToolKit.C1ZoomAttachingEventArgs.html">C1ZoomAttachingEventArgs</a>'s
<a class="xref" href="C1.Win.TouchToolKit.C1ZoomAttachingEventArgs.Cancel.html#C1_Win_TouchToolKit_C1ZoomAttachingEventArgs_Cancel">Cancel</a> property to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.
</p>
<p>
If the form has attached a <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a>, the <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.html">C1ApplicationZoom</a> do not attach it again.
</p>
<p>
The <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.html">C1ApplicationZoom</a> can't make the tooltip, contextMenu, common dialog's has gesture zoom ability.
</p>
</div>
  <h5 id="C1_Win_TouchToolKit_C1ApplicationZoom_examples"><strong>Examples</strong></h5>
  <p>
  The following code example shows how to use <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.html">C1ApplicationZoom</a> component. 
</p>
<p>
  You can copy the code to a exsit Windows Forms appliction. And set the form in the sample code as start form. 
</p>
<p>
  If you find a licenses error when run this code. Try to drag a <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.html">C1ApplicationZoom</a> component to a 
  any Form from tool box can generate the licenses information to this project.
</p>
<pre><code class="lang-csharp">public class UserControlZoomPolicyDemo : Form
{
	private CheckBox _zoomItemBoundsCheckBox;
	private MyControl _myControl;
	private MyControlZoomPolicy _myControlZoomPolicy = new MyControlZoomPolicy();
	private GcZoom _gcZoom1 = new GcZoom();

	public UserControlZoomPolicyDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		// Add MyControl's ZoomPolicy object to GcZoom
		_gcZoom1.ZoomPolicies.Add(_myControlZoomPolicy);

		_zoomItemBoundsCheckBox.CheckedChanged += _zoomItemBoundsCheckBox_CheckedChanged;
	}

	void _zoomItemBoundsCheckBox_CheckedChanged(object sender, EventArgs e)
	{
		_gcZoom1.ZoomFactor = 1f;
		_myControlZoomPolicy.ZoomItemBounds = _zoomItemBoundsCheckBox.Checked;
	}

	private void InitializeComponent()
	{
		_zoomItemBoundsCheckBox = new CheckBox();
		_zoomItemBoundsCheckBox.Text = "ZoomItemBounds";
		_zoomItemBoundsCheckBox.Location = new Point(20, 20);
		_zoomItemBoundsCheckBox.Size = new Size(120, 20);
		_zoomItemBoundsCheckBox.Checked = true;

		_myControl = new MyControl();
		_myControl.Location = new Point(200, 20);

		this.Controls.Add(_zoomItemBoundsCheckBox);
		this.Controls.Add(_myControl);
		this.Size = new Size(600, 400);
	}
}

// Implements a zoom policy for MyControl
internal class MyControlZoomPolicy : ZoomPolicy
{
	private bool _zoomItemBounds = true;

	public MyControlZoomPolicy()
	{
	}

	public bool ZoomItemBounds
	{
		get { return _zoomItemBounds; }
		set { _zoomItemBounds = value; }
	}

	// Gets the type indicates which control type can use this policy.
	public override Type TargetType
	{
		get { return typeof(MyControl); }
	}

	// Zoom the control bounds
	public override void ZoomBounds(Control control, ZoomBoundsInfo infos)
	{
		if (ZoomItemBounds)
		{
			MyControl myControl = control as MyControl;
			myControl.ColumnWidth = infos.Zoom(myControl.ColumnWidth);
			myControl.RowHeight = infos.Zoom(myControl.RowHeight);
		}

		base.ZoomBounds(control, infos);
	}

	// Zoom the control font
	public override void ZoomFont(Control control, ZoomFontInfo infos)
	{
		base.ZoomFont(control, infos);
	}
}

// MyControl component
internal class MyControl : UserControl
{
	private int _columnWidth;
	private int _rowHeight;
	private Brush[,] _brushes = {
	{Brushes.AliceBlue, Brushes.Aqua},
	{Brushes.Beige, Brushes.BlanchedAlmond},
	{Brushes.BurlyWood, Brushes.Chocolate},
	{Brushes.Crimson, Brushes.DarkGoldenrod},
	{Brushes.DarkMagenta, Brushes.DarkRed},
	{Brushes.DarkSlateGray, Brushes.DeepSkyBlue},
	{Brushes.Firebrick, Brushes.GhostWhite}
};

	public MyControl()
	{
		InitializeComponent();

		this.ColumnWidth = 40;
		this.RowHeight = 40;
	}

	public int ColumnWidth
	{
		get { return _columnWidth; }
		set { _columnWidth = value; }
	}

	public int RowHeight
	{
		get { return _rowHeight; }
		set { _rowHeight = value; }
	}

	private void InitializeComponent()
	{
		this.BackColor = SystemColors.Control;
		this.Size = new Size(80, 280);
	}

	protected override void OnPaint(PaintEventArgs e)
	{
		Draw(e.Graphics);
		base.OnPaint(e);
	}

	private void Draw(Graphics gObj)
	{
		gObj.DrawRectangle(SystemPens.ControlDark, 0, 0, this.Width - 1, this.Height - 1);

		for (int i = 0; i &lt; 2; ++i)
		{
			for (int j = 0; j &lt; 7; ++j)
			{
				Rectangle rect = new Rectangle(i * _columnWidth, j * _rowHeight, _columnWidth, _rowHeight);
				rect.Inflate(-6, -6);

				gObj.DrawRectangle(SystemPens.ControlDark, rect);
				gObj.DrawLine(SystemPens.ControlDarkDark, rect.Left, rect.Top + 1, rect.Right, rect.Top + 1);
				gObj.DrawLine(SystemPens.ControlDarkDark, rect.Left + 1, rect.Top, rect.Left + 1, rect.Bottom);
				gObj.DrawLine(SystemPens.ControlLightLight, rect.Right + 1, rect.Top, rect.Right + 1, rect.Bottom);
				gObj.DrawLine(SystemPens.ControlLightLight, rect.Left, rect.Bottom + 1, rect.Right, rect.Bottom + 1);

				rect.Inflate(-1, -1);
				rect.Offset(1, 1);
				gObj.FillRectangle(_brushes[j, i], rect);
			}
		}
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class GcApplicationZoomDemo
	Inherits Form
	Private _showFormButton As Button
	Private _showForm2Button As Button
	Private _gcApplicationZoom As GcApplicationZoom

	Public Sub New()
		InitializeComponent()

		AddHandler _showFormButton.Click, AddressOf _showFormButton_Click
		AddHandler _showForm2Button.Click, AddressOf _showForm2Button_Click
		AddHandler _gcApplicationZoom.GcZoomAttaching, AddressOf _gcApplicationZoom_GcZoomAttaching
		AddHandler _gcApplicationZoom.GcZoomAttached, AddressOf _gcApplicationZoom_GcZoomAttached
		AddHandler _gcApplicationZoom.GcZoomDetached, AddressOf _gcApplicationZoom_GcZoomDetached
	End Sub

	Private Sub _gcApplicationZoom_GcZoomAttaching(sender As Object, e As GcZoomAttachingEventArgs)
		' May be some forms should not be zoom.
		If TypeOf e.Form Is NormalForm Then
			e.Cancel = True
		Else
			e.GcZoom.AutoShowControl = True
		End If
	End Sub

	Private Sub _gcApplicationZoom_GcZoomAttached(sender As Object, e As GcZoomAttachedEventArgs)
		' If you want specific GcZoom's setting different from GcApplicationZoom, You can change it in
		' GcZoomAttaching or GcZoomAttached event.
		e.GcZoom.MaxZoomFactor = 4.0F

		If TypeOf e.Form Is ZoomForm Then
			AddHandler e.GcZoom.ZoomFactorChanged, AddressOf TryCast(e.Form, ZoomForm).ZoomFactorChangeProc
		End If
	End Sub

	Private Sub _gcApplicationZoom_GcZoomDetached(sender As Object, e As GcZoomDetachedEventArgs)
		If TypeOf e.Form Is ZoomForm Then
			RemoveHandler e.GcZoom.ZoomFactorChanged, AddressOf TryCast(e.Form, ZoomForm).ZoomFactorChangeProc
		End If
	End Sub

	Private Sub _showFormButton_Click(sender As Object, e As EventArgs)
		Dim form As Form = New ZoomForm()
		form.Show()
	End Sub

	Private Sub _showForm2Button_Click(sender As Object, e As EventArgs)
		Dim form As Form = New NormalForm()
		form.Show()
	End Sub

	Private Sub InitializeComponent()
		_gcApplicationZoom = New GcApplicationZoom()

		_showFormButton = New Button()
		_showFormButton.Text = "Click to open ZoomForm"
		_showFormButton.Location = New Point(20, 20)
		_showFormButton.Size = New Size(200, 40)

		_showForm2Button = New Button()
		_showForm2Button.Text = "Click to open NormalForm"
		_showForm2Button.Location = New Point(20, 80)
		_showForm2Button.Size = New Size(200, 40)

		Me.Controls.Add(_showFormButton)
		Me.Controls.Add(_showForm2Button)
	End Sub
End Class

Friend Class ZoomForm
	Inherits Form
	Private _showFormButton As Button

	Public Sub New()
		InitializeComponent()

		AddHandler _showFormButton.Click, AddressOf _showFormButton_Click
	End Sub

	Public Sub ZoomFactorChangeProc(sender As Object, e As EventArgs)
		Console.WriteLine(GcApplicationZoom.GetGcZoom(Me).ZoomFactor.ToString())
	End Sub

	Private Sub _showFormButton_Click(sender As Object, e As EventArgs)
		Dim form As Form = New ZoomForm()
		form.Show()
	End Sub

	Private Sub InitializeComponent()
		_showFormButton = New Button()
		_showFormButton.Text = "Click to open a new form"
		_showFormButton.Location = New Point(20, 20)
		_showFormButton.Size = New Size(200, 40)
		Me.Controls.Add(_showFormButton)
	End Sub
End Class

Friend Class NormalForm
	Inherits Form
	Private _showFormButton As Button

	Public Sub New()
		InitializeComponent()

		AddHandler _showFormButton.Click, AddressOf _showFormButton_Click
	End Sub

	Private Sub _showFormButton_Click(sender As Object, e As EventArgs)
		Dim form As Form = New NormalForm()
		form.Show()
	End Sub

	Private Sub InitializeComponent()
		_showFormButton = New Button()
		_showFormButton.Text = "Click to open a new form"
		_showFormButton.Location = New Point(20, 20)
		_showFormButton.Size = New Size(200, 40)
		Me.Controls.Add(_showFormButton)
	End Sub
End Class</code></pre>

  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom__ctor" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.#ctor">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.-ctor.html#C1_Win_TouchToolKit_C1ApplicationZoom__ctor">C1ApplicationZoom()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.html">C1ApplicationZoom</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom__ctor_System_ComponentModel_IContainer_" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.#ctor(System.ComponentModel.IContainer)">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.-ctor.html#C1_Win_TouchToolKit_C1ApplicationZoom__ctor_System_ComponentModel_IContainer_">C1ApplicationZoom(IContainer)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.html">C1ApplicationZoom</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AllowDoubleTapZoom" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AllowDoubleTapZoom">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AllowDoubleTapZoom.html#C1_Win_TouchToolKit_C1ApplicationZoom_AllowDoubleTapZoom">AllowDoubleTapZoom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether allow double tap to zoom. <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.ZoomFactor.html#C1_Win_TouchToolKit_C1Zoom_ZoomFactor">ZoomFactor</a> will change to 2f or <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.MaxZoomFactor.html#C1_Win_TouchToolKit_C1Zoom_MaxZoomFactor">MaxZoomFactor</a> if it is less than 2f before double tap; otherwise, it will change to 1f.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AllowMouseWheelScroll" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AllowMouseWheelScroll">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AllowMouseWheelScroll.html#C1_Win_TouchToolKit_C1ApplicationZoom_AllowMouseWheelScroll">AllowMouseWheelScroll</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets which types of MouseWheel scroll are possible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AllowMouseWheelZoom" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AllowMouseWheelZoom">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AllowMouseWheelZoom.html#C1_Win_TouchToolKit_C1ApplicationZoom_AllowMouseWheelZoom">AllowMouseWheelZoom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether allow zoom by control + mouse wheel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AllowPanScroll" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AllowPanScroll">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AllowPanScroll.html#C1_Win_TouchToolKit_C1ApplicationZoom_AllowPanScroll">AllowPanScroll</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether allow scroll the form by pan gesture.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AllowPinchZoom" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AllowPinchZoom">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AllowPinchZoom.html#C1_Win_TouchToolKit_C1ApplicationZoom_AllowPinchZoom">AllowPinchZoom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the form can perform gesture zoom.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AllowResizeByZoom" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AllowResizeByZoom">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AllowResizeByZoom.html#C1_Win_TouchToolKit_C1ApplicationZoom_AllowResizeByZoom">AllowResizeByZoom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether resize form when zooming form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AllowZoomByResize" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AllowZoomByResize">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AllowZoomByResize.html#C1_Win_TouchToolKit_C1ApplicationZoom_AllowZoomByResize">AllowZoomByResize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether zoom form when resizing form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AlternativeContentSettings" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AlternativeContentSettings">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AlternativeContentSettings.html#C1_Win_TouchToolKit_C1ApplicationZoom_AlternativeContentSettings">AlternativeContentSettings</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the settings indicating how to display zoom factor when gesture zooming.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AutoShowControl" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AutoShowControl">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AutoShowControl.html#C1_Win_TouchToolKit_C1ApplicationZoom_AutoShowControl">AutoShowControl</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the control auto show when get focus or touch keyboard popup.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_BackColor" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.BackColor">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.BackColor.html#C1_Win_TouchToolKit_C1ApplicationZoom_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color of blank areas in Form when to zoom and scroll.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_BackgroundImage" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.BackgroundImage">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.BackgroundImage.html#C1_Win_TouchToolKit_C1ApplicationZoom_BackgroundImage">BackgroundImage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background image displayed in the blank areas of Form when to zoom and scroll.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_BackgroundImageLayout" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.BackgroundImageLayout">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.BackgroundImageLayout.html#C1_Win_TouchToolKit_C1ApplicationZoom_BackgroundImageLayout">BackgroundImageLayout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background image layout as defined in the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.imagelayout">ImageLayout</a> enumeration.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_BoundaryFeedbackMode" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.BoundaryFeedbackMode">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.BoundaryFeedbackMode.html#C1_Win_TouchToolKit_C1ApplicationZoom_BoundaryFeedbackMode">BoundaryFeedbackMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating how to show visual feedback when scroll reach end point.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_ControlBars" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.ControlBars">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.ControlBars.html#C1_Win_TouchToolKit_C1ApplicationZoom_ControlBars">ControlBars</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="C1.Win.TouchToolKit.ControlBar.html">ControlBar</a> contained within the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_DefaultZoomPolicies" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.DefaultZoomPolicies">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.DefaultZoomPolicies.html#C1_Win_TouchToolKit_C1ApplicationZoom_DefaultZoomPolicies">DefaultZoomPolicies</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the default zoom policies.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_FullScreenMode" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.FullScreenMode">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.FullScreenMode.html#C1_Win_TouchToolKit_C1ApplicationZoom_FullScreenMode">FullScreenMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the full screen mode used by owner form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_InnerPanelLayoutMode" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.InnerPanelLayoutMode">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.InnerPanelLayoutMode.html#C1_Win_TouchToolKit_C1ApplicationZoom_InnerPanelLayoutMode">InnerPanelLayoutMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the layout mode of InnerPanel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_IsHorizontalRailEnabled" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.IsHorizontalRailEnabled">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.IsHorizontalRailEnabled.html#C1_Win_TouchToolKit_C1ApplicationZoom_IsHorizontalRailEnabled">IsHorizontalRailEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the scroll rail is enabled for the horizontal axis.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_IsVerticalRailEnabled" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.IsVerticalRailEnabled">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.IsVerticalRailEnabled.html#C1_Win_TouchToolKit_C1ApplicationZoom_IsVerticalRailEnabled">IsVerticalRailEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the scroll rail is enabled for the vertical axis.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_KeepAspectRatio" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.KeepAspectRatio">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.KeepAspectRatio.html#C1_Win_TouchToolKit_C1ApplicationZoom_KeepAspectRatio">KeepAspectRatio</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to keep aspect ratio when resize the form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_MaxZoomFactor" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.MaxZoomFactor">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.MaxZoomFactor.html#C1_Win_TouchToolKit_C1ApplicationZoom_MaxZoomFactor">MaxZoomFactor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum zoom factor of the form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_ScrollIndicatorMode" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.ScrollIndicatorMode">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.ScrollIndicatorMode.html#C1_Win_TouchToolKit_C1ApplicationZoom_ScrollIndicatorMode">ScrollIndicatorMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating which mode to indicate current scroll location.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_ZoomPolicies" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomPolicies">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomPolicies.html#C1_Win_TouchToolKit_C1ApplicationZoom_ZoomPolicies">ZoomPolicies</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the custom zoom policies. <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a> will look for zoom policies in this
list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_ZoomPreviewMode" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomPreviewMode">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomPreviewMode.html#C1_Win_TouchToolKit_C1ApplicationZoom_ZoomPreviewMode">ZoomPreviewMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating how to preview the form when gesture zooming.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_ZoomSnapDistance" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomSnapDistance">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomSnapDistance.html#C1_Win_TouchToolKit_C1ApplicationZoom_ZoomSnapDistance">ZoomSnapDistance</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicate the minimum distance that can cause current zoom factor snap to a zoom factor in <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomSnapPoints.html#C1_Win_TouchToolKit_C1ApplicationZoom_ZoomSnapPoints">ZoomSnapPoints</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_ZoomSnapPoints" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomSnapPoints">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.ZoomSnapPoints.html#C1_Win_TouchToolKit_C1ApplicationZoom_ZoomSnapPoints">ZoomSnapPoints</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a group of zoom factor, when zoom ending, the result zoom factor will try to snap to a zoom factor in this group.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_AboutBox" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.AboutBox">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.AboutBox.html#C1_Win_TouchToolKit_C1ApplicationZoom_AboutBox">AboutBox()</a>
        </td>
        <td class="markdown level1 summary"><p>Shows the product information window.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_Dispose_System_Boolean_" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.Dispose.html#C1_Win_TouchToolKit_C1ApplicationZoom_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the unmanaged resources used by the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a> and optionally releases the managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_GetC1Zoom_System_Windows_Forms_Form_" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.GetC1Zoom(System.Windows.Forms.Form)">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.GetC1Zoom.html#C1_Win_TouchToolKit_C1ApplicationZoom_GetC1Zoom_System_Windows_Forms_Form_">GetC1Zoom(Form)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the associated <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a> by a specific form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_OnC1ZoomAttached_C1_Win_TouchToolKit_C1ZoomAttachedEventArgs_" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.OnC1ZoomAttached(C1.Win.TouchToolKit.C1ZoomAttachedEventArgs)">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.OnC1ZoomAttached.html#C1_Win_TouchToolKit_C1ApplicationZoom_OnC1ZoomAttached_C1_Win_TouchToolKit_C1ZoomAttachedEventArgs_">OnC1ZoomAttached(C1ZoomAttachedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttached.html">C1ZoomAttached</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_OnC1ZoomAttaching_C1_Win_TouchToolKit_C1ZoomAttachingEventArgs_" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.OnC1ZoomAttaching(C1.Win.TouchToolKit.C1ZoomAttachingEventArgs)">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.OnC1ZoomAttaching.html#C1_Win_TouchToolKit_C1ApplicationZoom_OnC1ZoomAttaching_C1_Win_TouchToolKit_C1ZoomAttachingEventArgs_">OnC1ZoomAttaching(C1ZoomAttachingEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttaching.html">C1ZoomAttaching</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_OnC1ZoomDetached_C1_Win_TouchToolKit_C1ZoomDetachedEventArgs_" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.OnC1ZoomDetached(C1.Win.TouchToolKit.C1ZoomDetachedEventArgs)">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.OnC1ZoomDetached.html#C1_Win_TouchToolKit_C1ApplicationZoom_OnC1ZoomDetached_C1_Win_TouchToolKit_C1ZoomDetachedEventArgs_">OnC1ZoomDetached(C1ZoomDetachedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomDetached.html">C1ZoomDetached</a> event.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_C1ZoomAttached" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttached">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttached.html">C1ZoomAttached</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a> component has attached to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_C1ZoomAttaching" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttaching">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomAttaching.html">C1ZoomAttaching</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a> component is preparing attach to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_C1ApplicationZoom_C1ZoomDetached" data-uid="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomDetached">
          <a class="xref" href="C1.Win.TouchToolKit.C1ApplicationZoom.C1ZoomDetached.html">C1ZoomDetached</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a> component has detached from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
