适用于Visual Studio 2015的GTK#GUI设计器 [英] GTK# GUI designer for Visual Studio 2015

查看:115
本文介绍了适用于Visual Studio 2015的GTK#GUI设计器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用C#制作一个应用程序,该应用程序可以下载,安装和管理我和一些朋友将制作的各种游戏.

I'm trying to make an application in C# that can download, install and manage various games that I and a few friends'll be making.

我知道我该怎么做,但是我希望用户能够在Windows和Linux上使用该应用程序,因为大多数游戏都可以在两者上运行.那不是大问题,我知道我将如何工作.哦,Mono和GTK#的力量.

I know how I'm gonna do it, but I want users to be able to use this app on both Windows and Linux as most games will run on both. That's not the big issue, I know how I'm gonna get that working. Ohhhh, the power of Mono and GTK#.

但是,问题是,对于GUI设计,我无法像在Windows窗体中一样想出如何在Visual Studio中设计GTK窗口.我不知道是否有外接程序之类的东西,我只需要某种方式来设计Linux的GUI.

The issue is, however, that for GUI-designing I can't figure out how to design GTK windows within Visual Studio just like you can with Windows Forms. I don't know if there's an add-in or whateverthelike, I just need some way of designing my GUIs for Linux.

我正在Windows 10上运行Visual Studio Express 2015.

I am running Visual Studio Express 2015, on Windows 10.

推荐答案

我从未见过Visual Studio嵌入式GTK(+/2/3)设计器的公开版本,更不用说支持GTK#的设计器了.

I have never seen a public version of a Visual Studio embedded GTK (+/2/3) Designer, let alone one that supports GTK#.

就Mono GTK#而言,它的设计师称为"Stetic",并嵌入到MonoDevelop/Xamarin Studio中.

As far as Mono GTK# goes, it's designer is called 'Stetic' and is embedded into MonoDevelop/Xamarin Studio.

Stetic具有基于GUI的设计器,但也使用该设计器生成的文件从xml文件(gui.stetic)生成C#代码,并将其与用户编写的代码(动作/事件/等)结合在一起.C#局部类.

Stetic has a GUI based designer but also uses the files produced from that designer to generate the C# code from a xml file (gui.stetic) and combine that with user written code (actions/events/etc...) via C# partial classes.

您还可以使用Glade Designer(旧版本)并将其导入MD/XS,它将把它们转换为gui.stetic文件,从而为您的UI创建C#类.当我需要快速淘汰复杂的GUI原型时,这就是我曾经做过的事情.Stetic可以真正地耐心尝试其工作方式,但是最后,我个人将跳过Stetic和Glade GUI设计器,而仅使用直接的C#编写GTK#容器,小部件和操作.

You can also use the Glade Designer (older versions) and import them into MD/XS and it will convert them to a gui.stetic files and thus create the C# classes for your UI. This is what I used to do when I needed to knock out a complex GUI prototype quickly. Stetic can really try your patience with the ways it works, but in the end, personally I would skip the Stetic and Glade GUI designers and just code the GTK# containers, widgets and actions in straight C#.

Stetic GUI Designer转到Glade for Gtk#3

使用GTK#构建GUI

MonoDevelop编辑器GUI设计器

https://glade.gnome.org

这篇关于适用于Visual Studio 2015的GTK#GUI设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆