Ejemplo n.º 1
0
Archivo: Form1.cs Proyecto: 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);
		}
Ejemplo n.º 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);
        }