예제 #1
0
파일: Form1.cs 프로젝트: 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);
		}
예제 #2
0
파일: Form1.cs 프로젝트: philstopford/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);
        }