我想在我的Windows计算机上安装MonoDevelop
MonoDevelop网站指示我下载GtkSharp 2.12.20没有好处 - MonoDevelop 4.0.13需要2.12.22
当我去Mono网站时,安装程序已经过时了2.12.11当我到达Gtk Sharp网站时,安装程序已经过时了2.12.20
我有脑屁吗?我在哪里可以获得此安装程序?
我正在openSuse下开发一个GTK#mono应用程序,但我有兴趣将它部署到所有三个平台(Windows 7,Snow Leopard以及我可以测试的许多Linux发行版).
在Linux上部署不是问题,因为GTK#带有单声道库,但对于Windows,我不想强迫用户安装GTK#.有没有办法在应用程序中嵌入GTK#,或者至少将其安装与我的程序安装集成?
在使用Mono开发应用程序以在Windows和Mac OSX(以及可能是Linux)上运行时,您会建议使用WinForms或GtkSharp用于GUI以及为什么?
非常感谢具体的例子和成功/恐怖故事.
我买了一台新的Retina MacBook Pro,用于开发适用于iOS的MonoTouch.
非常令人沮丧的是,可能因为它是基于Gtk#构建的,MonoDevelop非常模糊.
我可以应对模糊的UI,但我无法读取或编写代码,因为它会伤害我的眼睛.
在Gtk#和MonoDevelop中Retina支持的现状如何?
是否有任何(实验性)编译标志至少能够实现正确的代码渲染?
如果我想贡献,哪个组件负责这个?它是Gtk#还是Gtk本身?
我想通过GTK#中的列表视图显示一个大型数据集,性能是一个问题.我目前正在使用支持ListStore的TreeView,但是将所有数据添加到ListStore需要永远.在GTK中是否有某种列表视图窗口小部件支持延迟加载数据?在Winforms中,您可以使用DataGridView的VirtualMode属性来处理这个问题,但是我没有看到任何类型的GTK.
我有一个从GUI生成的工作线程(用于GUI性能),如何访问GUI,例如从线程本身生成新的窗口/窗口小部件?
我尝试使用代理但它似乎没有工作.有任何想法吗?可能的例子?谢谢.
我试图在GTK中使用图像按钮#(Xamarin Studio).我将图像设置为按钮,在UI Builder中,图像即将出现.
但是当我运行程序时,按钮中没有图像
我在不同版本的IDE和不同平台(Mac和Windows)上试过这个
请帮忙
更新:MainWindow.cs
using System;
using Gtk;
public partial class MainWindow: Gtk.Window
{
public MainWindow () : base (Gtk.WindowType.Toplevel)
{
Build ();
}
protected void OnDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
}
Run Code Online (Sandbox Code Playgroud)
在gtk-gui文件夹中,我可以找到这些文件
generated.cs
// This file has been generated by the GUI designer. Do not modify.
namespace Stetic
{
internal class Gui
{
private static bool initialized;
internal static void Initialize (Gtk.Widget iconRenderer)
{
if ((Stetic.Gui.initialized == …
Run Code Online (Sandbox Code Playgroud) 我是一名长期的C#开发人员,但对Mono来说是新手,尤其是Gtk#.我用C#和Gtk#开发了一个小应用程序.我需要这个应用程序在Windows,Linux和Mac上运行所以我决定选择Mono,到目前为止,它似乎是一个很酷的框架.
我的简单应用程序所做的是基于用户选择的本地目录和端口启动XSP Web服务器.理想情况下,我希望我的应用程序无需首先安装Mono框架即可工作,但这不是必须开始的.我使用以下库:
using System;
using Gtk;
using System.Net;
using Mono.WebServer;
using System.Diagnostics;
Run Code Online (Sandbox Code Playgroud)
我在Mac上开发(Snow Leopard,10.6.7).我的可执行文件在我的Mac上完美运行 但是我遇到了Ubuntu和Windows的问题.我的应用程序部分在Ubuntu(11.04)上运行 - 它启动并且似乎正在工作但在我尝试启动XSP Web服务器时失败,这似乎可以预期,因为Mono.Webserver可能没有安装在我的Ubuntu机器上.在Windows(7,64位)上,当我双击它时,我的应用程序立即崩溃.崩溃报告告诉我发生了System.IO.FileNotFoundException错误.可能是由于同样缺少XSP库?
无论如何,我在互联网上环顾四周并了解了一下mkbundle
.我按照各种论坛帖子的建议执行了以下设置:
export AS="as -arch i386"
Run Code Online (Sandbox Code Playgroud)
我已导航到项目的/ bin/Release目录,然后运行以下命令:
mkbundle MivandoLocalServer.exe -o MivandoLocalServer --deps
Run Code Online (Sandbox Code Playgroud)
但我得到以下输出,最终失败:
Compiling:
as -arch i386 -o temp.o temp.s
cc -g -o MivandoLocalServer -Wall temp.c `pkg-config --cflags --libs mono-2` temp.o
Package mono-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mono-2.pc'
to the …
Run Code Online (Sandbox Code Playgroud) 我一直在努力让GTK#在Windows Server 2008 R2 x64上的Visual Studio 2010中工作,这样我就可以开始编写漂亮的跨平台GUI应用程序,但我对C#有点新,我有一个世界麻烦
我安装了最新的Mono for Windows,其中包括GTK#.我还安装了一个单声道2.10.8轮廓在我的项目的目标框架从这里引导松散以下内容:http://erictummers.wordpress.com/2012/01/25/target-mono-from-visual-studio/
我创建了一个新的Windows窗体应用程序并删除引用Windows窗体的东西,并添加引用的GTK#的东西,从这里引导松散以下内容:http://jrwren.wrenfam.com/blog/2008/11/01/gtk-在视觉工作室-2008-上Vista的X64 /
我还添加了对gtk-dotnet的引用以及该指南中的引用.
这是我的应用程序的完整代码:
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using Gtk;
namespace GridToGo
{
static class Program
{
[STAThread]
static void Main()
{
Application.Init();
Window myWin = new Window("My first GTK# Application! ");
myWin.Resize(200, 200);
myWin.Destroyed += new EventHandler(myWin_Destroyed);
Label myLabel = new Label();
myLabel.Text = "Hello World!!!!";
myWin.Add(myLabel);
myWin.ShowAll();
Application.Run();
}
static void myWin_Destroyed(object sender, EventArgs e)
{
Application.Quit();
}
}
}
Run Code Online (Sandbox Code Playgroud)
当我尝试使用任何配置运行它时,我得到以下异常:
System.TypeInitializationException …
Run Code Online (Sandbox Code Playgroud) 我在Gtk#/ mono C#中有一个KeyPressed信号用于两个不同的目的,默认的TreeView中不存在:a)按TAB转到下一个单元格,b)按任意键开始编辑.
该树视图是简单,它有一个ListStore仅示出的行和列,即,其保持表格数据.
我的代码如下.
[GLib.ConnectBefore]
protected void OnTableKeyPressed(object o, Gtk.KeyPressEventArgs args)
{
int rowIndex;
int colIndex;
// Do not "eat" the key, by default
args.RetVal = false;
// Get the current position, needed in both cases.
this.GetCurrentCell( out rowIndex, out colIndex );
// Adapt the column
colIndex += NumFixedColumns;
if ( args.Event.Key != Gdk.Key.ISO_Enter ) {
if ( args.Event.Key == Gdk.Key.Tab
|| args.Event.Key == Gdk.Key.ISO_Left_Tab )
{
if( args.Event.State …
Run Code Online (Sandbox Code Playgroud) gtk# ×10
c# ×6
mono ×6
gtk ×3
monodevelop ×3
xamarin ×2
cell ×1
lazy-loading ×1
listview ×1
treeview ×1
windows ×1
winforms ×1
xamarin.ios ×1