Ejemplo n.º 1
0
		public MainForm()
		{
			Menu = new MenuBar();

			// create a new native Wpf control and wrap it in an eto control
			var nativeControl = new MyNativeControl().ToEto();
			
			Content = new TableLayout
			{
				Padding = new Padding(10),
				Spacing = new Size(5, 5),
				Rows =
				{
					nativeControl,
					null,
					new TableLayout(new TableRow(null, new Button { Text = "An Eto.Forms button" })),
				}
			};
		}
Ejemplo n.º 2
0
        public MainForm()
        {
            Menu = new MenuBar();

            // create a new native Wpf control and wrap it in an eto control
            var nativeControl = new MyNativeControl().ToEto();

            Content = new TableLayout
            {
                Padding = new Padding(10),
                Spacing = new Size(5, 5),
                Rows    =
                {
                    nativeControl,
                    null,
                    new TableLayout(new TableRow(null,new Button  {
                        Text = "An Eto.Forms button"
                    })),
                }
            };
        }