# C1.Win.TouchToolKit.C1Zoom.BoundaryFeedbackMode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1Zoom_BoundaryFeedbackMode_" data-uid="C1.Win.TouchToolKit.C1Zoom.BoundaryFeedbackMode*">BoundaryFeedbackMode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1Zoom_BoundaryFeedbackMode_" data-uid="C1.Win.TouchToolKit.C1Zoom.BoundaryFeedbackMode*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_BoundaryFeedbackMode" data-uid="C1.Win.TouchToolKit.C1Zoom.BoundaryFeedbackMode">BoundaryFeedbackMode</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating how to show visual feedback when scroll reach end point.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public BoundaryFeedbackMode BoundaryFeedbackMode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property BoundaryFeedbackMode As BoundaryFeedbackMode</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="C1.Win.TouchToolKit.BoundaryFeedbackMode.html">BoundaryFeedbackMode</a></td>
      <td><p>One of <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.BoundaryFeedbackMode.html#C1_Win_TouchToolKit_C1Zoom_BoundaryFeedbackMode">BoundaryFeedbackMode</a> values. The default is <a class="xref" href="C1.Win.TouchToolKit.BoundaryFeedbackMode.html#C1_Win_TouchToolKit_BoundaryFeedbackMode_Split">Split</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_BoundaryFeedbackMode_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.html">C1Zoom</a> class. 
  Run the sample code, select the different value of BoundaryFeedbackMode ComboBox. Try to zoom and pan by touch to check the difference of different ZoomPreviewMode.
</p>
<pre><code class="lang-csharp">public class GcZoomDemo : Form
{
	private ComboBox _boundaryFeedbackModeComboBox;
	private GcZoom _gcZoom1 = new GcZoom();

	public GcZoomDemo()
	{
		InitializeComponent();

	 	_gcZoom1.Target = this;

		_boundaryFeedbackModeComboBox.SelectedIndexChanged += boundaryFeedbackModeComboBox_SelectedIndexChanged;
 	}

	void boundaryFeedbackModeComboBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (_boundaryFeedbackModeComboBox.Text)
	 	{
			case "Split":
				_gcZoom1.BoundaryFeedbackMode = BoundaryFeedbackMode.Split;
			 	break;

		 	case "Standard":
				_gcZoom1.BoundaryFeedbackMode = BoundaryFeedbackMode.Standard;
				break;

			default:
				break;
	 	}
	}

	private void InitializeComponent()
	{
		_boundaryFeedbackModeComboBox = new ComboBox();
		_boundaryFeedbackModeComboBox.Items.AddRange(new object[] { "Split", "Standard" });
		_boundaryFeedbackModeComboBox.Location = new Point(160, 50);
		this.Controls.Add(_boundaryFeedbackModeComboBox);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class GcZoomDemo
	Inherits Form
	Private _boundaryFeedbackModeComboBox As ComboBox
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _boundaryFeedbackModeComboBox.SelectedIndexChanged, AddressOf boundaryFeedbackModeComboBox_SelectedIndexChanged
	End Sub

	Private Sub boundaryFeedbackModeComboBox_SelectedIndexChanged(sender As Object, e As EventArgs)
		Select Case _boundaryFeedbackModeComboBox.Text
	 		Case "Split"
		 		_gcZoom1.BoundaryFeedbackMode = BoundaryFeedbackMode.Split
		 		Exit Select

	 		Case "Standard"
		 		_gcZoom1.BoundaryFeedbackMode = BoundaryFeedbackMode.Standard
		 		Exit Select

	 		Case Else
		 		Exit Select
 		End Select
	End Sub

	Private Sub InitializeComponent()
 		_boundaryFeedbackModeComboBox = New ComboBox()
 		_boundaryFeedbackModeComboBox.Items.AddRange(New Object() {"Split", "Standard"})
 		_boundaryFeedbackModeComboBox.Location = New Point(160, 50)
 		Me.Controls.Add(_boundaryFeedbackModeComboBox)
	End Sub
End Class</code></pre>

</div>
