picoe/Eto

EtoForms is not native even when using winforms toolkit

Open

#1,502 创建于 2019年11月11日

在 GitHub 查看
 (19 评论) (0 反应) (0 负责人)C# (3,387 star) (320 fork)batch import
help wanted

描述

Expected Behavior

Winforms looks like the right instead of the left for menus, toolbars, and context strips image

Actual Behavior

looks more like the left (not native)

Steps to Reproduce the Problem

  1. Make EtoForms app with winforms toolkit instead of wpf
  2. add menu, toolbar and context strip
  3. Run the program and see how ugly it looks

Code that Demonstrates the Problem

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Eto.Forms;
namespace PureEditor
{
    class Program : Form
    {
        static void Main(string[] args)
        {
            new Application().Run(new Program());
        }

        public Program()
        {
            Width  = 256;
            Height = 240;

            ButtonMenuItem item1 = new ButtonMenuItem();
            item1.Text = "Test1";

            Menu = new MenuBar();
            Menu.Items.Add(item1);

            ButtonToolItem item2 = new ButtonToolItem();
            item2.Text = "Test2";

            ToolBar = new ToolBar();
            ToolBar.Items.Add(item2);

            ButtonMenuItem item3 = new ButtonMenuItem();
            item3.Text = "Test3";

            ContextMenu = new ContextMenu();
            ContextMenu.Items.Add(item3);
        }
    }


}

Specifications

  • Version: 2.4.1
  • Platform(s): WinForms
  • Operating System(s): E.g. Windows 7 Ultimate 64 bit

Notes

  • I suggested something simular here and was suggested I use the eto winforms toolkit.

  • I would suggest imitating this in wpf as well by default just for ease of use. it shouldn't be too hard for someone that knows wpf templates well.

  • I think eto should have the native rendering of mainmenu, toolbar, and contextmenu with the features of menustrip, toolstrip and contextmenustrip.

贡献者指南