[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1ZoomPanel.FeedbackAreaBackColor

FeedbackAreaBackColor Property

FeedbackAreaBackColor

Gets or sets the background color of blank areas in panel when to zoom and scroll.

Declaration
public Color FeedbackAreaBackColor { get; set; }
Property Value
Type Description
Color

A Color value that represents the background color of blank areas in panel when to zoom and scroll. The default is Color.Empty, means use the BackColor of panel.

Remarks

The BackColor property does not support transparent colors.

Examples

The following code example shows how to use this property.

This code example is part of a larger example provided for the C1ZoomPanel class.

public class GcZoomPanelDemo : Form
{
	private TextBox _childTextBox;
	private Button _childButton;
	private GcZoomPanel _gcZoomPanel;

	public GcZoomPanelDemo()
	{
		InitializeComponent();

		// Set feedback area color
		_gcZoomPanel.FeedbackAreaBackColor = SystemColors.ControlDark;
	}

	private void InitializeComponent()
	{
		_childTextBox = new TextBox();
		_childTextBox.Text = "This is TextBox";
		_childTextBox.Location = new Point(225, 150);
		_childTextBox.Size = new Size(150, 25);

		_childButton = new Button();
		_childButton.Text = "This is Button";
		_childButton.Location = new Point(225, 200);
		_childButton.Size = new Size(150, 25);

		_gcZoomPanel = new GcZoomPanel();
		_gcZoomPanel.Location = new Point(100, 100);
		_gcZoomPanel.Size = new Size(600, 400);
		_gcZoomPanel.BackColor = SystemColors.ControlDarkDark;

		_gcZoomPanel.Controls.Add(_childTextBox);
		_gcZoomPanel.Controls.Add(_childButton);

		this.Controls.Add(_gcZoomPanel);
	}
}
Public Class GcZoomPanelDemo
	Inherits Form
	Private _childTextBox As TextBox
	Private _childButton As Button
	Private _gcZoomPanel As GcZoomPanel

	Public Sub New()
		InitializeComponent()

		' Set feedback area color
		_gcZoomPanel.FeedbackAreaBackColor = SystemColors.ControlDark
	End Sub

	Private Sub InitializeComponent()
		_childTextBox = New TextBox()
		_childTextBox.Text = "This is TextBox"
		_childTextBox.Location = New Point(225, 150)
		_childTextBox.Size = New Size(150, 25)

		_childButton = New Button()
		_childButton.Text = "This is Button"
		_childButton.Location = New Point(225, 200)
		_childButton.Size = New Size(150, 25)

		_gcZoomPanel = New GcZoomPanel()
		_gcZoomPanel.Location = New Point(100, 100)
		_gcZoomPanel.Size = New Size(600, 400)
		_gcZoomPanel.BackColor = SystemColors.ControlDarkDark

		_gcZoomPanel.Controls.Add(_childTextBox)
		_gcZoomPanel.Controls.Add(_childButton)

		Me.Controls.Add(_gcZoomPanel)
	End Sub
End Class