简体   繁体   English

适用于Visual Studio 2015的GTK#GUI设计器

[英]GTK# GUI designer for Visual Studio 2015

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. 我正在尝试使用C#开发一个应用程序,该应用程序可以下载,安装和管理我和一些朋友将制作的各种游戏。

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. 我知道我该怎么做,但是我希望用户能够在Windows和Linux上都可以使用该应用程序,因为大多数游戏都可以在两者上运行。 That's not the big issue, I know how I'm gonna get that working. 那不是大问题,我知道我将如何工作。 Ohhhh, the power of Mono and GTK#. 哦,Mono和GTK#的力量。

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. 但是,问题是,对于GUI设计,我无法像在Windows窗体中一样想出如何在Visual Studio中设计GTK窗口。 I don't know if there's an add-in or whateverthelike, I just need some way of designing my GUIs for Linux. 我不知道是否有加载项或诸如此类的东西,我只需要某种方式来设计Linux的GUI。

I am running Visual Studio Express 2015, on Windows 10. 我正在Windows 10上运行Visual Studio Express 2015。

I have never seen a public version of a Visual Studio embedded GTK (+/2/3) Designer, let alone one that supports GTK#. 我从未见过公开版本的Visual Studio嵌入式GTK(+ / 2/3)设计器,更不用说支持GTK#的设计器了。

As far as Mono GTK# goes, it's designer is called 'Stetic' and is embedded into MonoDevelop/Xamarin Studio. 就Mono GTK#而言,它的设计师被称为“ Stetic”,并嵌入到MonoDevelop / Xamarin Studio中。

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. Stetic有一个基于GUI的设计器,但也使用该设计器生成的文件从xml文件(gui.stetic)生成C#代码,并通过C#部分类将其与用户编写的代码(动作/事件/等)结合在一起。 。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM