[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1Zoom.ControlBars

ControlBars Property

ControlBars

Gets the collection of ControlBar contained within the C1Zoom.

Declaration
public List<ControlBar> ControlBars { get; }
Property Value
Type Description
List<ControlBar>

A ControlBar value list that representing the collection of ControlBar contained within the C1Zoom.

Examples

The following code example shows how to use this property.

public class ControlBarDemo : Form
{
	private MyUserControl _userControl = new MyUserControl();
	private GcZoom _gcZoom1 = new GcZoom();

	public ControlBarDemo()
	{
		_gcZoom1.Target = this;

		// Create ControlBar
		ControlBar controlBar = new ControlBar();

		// Content should is a Type of UserControl.
		controlBar.Content = _userControl.GetType();

		controlBar.PositionMode = PositionMode.Floating;

		// Only take effect when Position Mode is Dock.
		// controlBar.DockPosition = ContentAlignment.MiddleCenter;
		// controlBar.Margin = new System.Windows.Forms.Padding();

		// Only take effect when Position is Fix or Flowing.
		controlBar.Position = new Point(20, 20);

		controlBar.Opacity = 1d;
		controlBar.TransparentBackground = true;

		_gcZoom1.ControlBars.Add(controlBar);
	}
}
Public Class ControlBarDemo
	Inherits Form
	Private _userControl As New MyUserControl()
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		_gcZoom1.Target = Me

		' Create ControlBar
		Dim controlBar As New ControlBar()

 		' Content should is a Type of UserControl.
		controlBar.Content = _userControl.[GetType]()

		controlBar.PositionMode = PositionMode.Floating

		' Only take effect when Position Mode is Dock.
		' controlBar.DockPosition = ContentAlignment.MiddleCenter;
		' controlBar.Margin = new System.Windows.Forms.Padding();

		' Only take effect when Position is Fix or Flowing.
		controlBar.Position = New Point(20, 20)

		controlBar.Opacity = 1.0
		controlBar.TransparentBackground = True

		_gcZoom1.ControlBars.Add(controlBar)
	End Sub
End Class