picoe/Eto

EtoForms is not native even when using winforms toolkit

开放

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

 (19 条评论) (0 个反应) (0 位负责人)C# (320 个派生)batch import
help wanted

仓库指标

星标
 (3,387 个星标)
PR 合并指标
 (平均合并 2天 23小时) (30 天内合并 15 个 PR)

描述

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.

贡献者指南