Example #1
0
File: Form1.cs Project: mhusen/Eto
		public Form1()
		{
			InitializeComponent();

			// Get native control for the panel
			// passing true so that we can embed, otherwise we just get a reference to the control
			var nativeView = new MyEtoPanel().ToNative(true);
			// set where we want it, size, dock attributes, etc.
			nativeView.Location = new Point(100, 100);
			//nativeView.Dock = DockStyle.Fill;

			Controls.Add(nativeView);
		}
Example #2
0
        public Form1()
        {
            InitializeComponent();

            // Get native control for the panel
            // passing true so that we can embed, otherwise we just get a reference to the control
            var nativeView = new MyEtoPanel().ToNative(true);

            // set where we want it, size, dock attributes, etc.
            nativeView.Location = new Point(100, 100);
            //nativeView.Dock = DockStyle.Fill;

            Controls.Add(nativeView);
        }