[Mono-dev] Developing using Mono/Gtk# Vs Mono.WinForms (Windows & Linux)

Martín Vales martin at intergeotecnologia.com
Sun Feb 15 11:16:55 EST 2009


Alan McGovern escribió:
>
>
> 2009/2/12 Daniel Espinosa <esodan at gmail.com <mailto:esodan at gmail.com>>
>
>     We are working on a project using Mono/C# for a GUI independent
>     library, but in parallel one library to use GUI objects (the
>     presentation layer) witch will use the first library as a data
>     provider.
>
>     The GUI must works on Linux/Windows among other OSs and both
>     libraries will be free software.
>
>     What could be better to use Gtk# or Winforms?
>
In the past i prefered gtk# but now i see in windows winforms it´s 
clearly better. Port your winform application to linux is direct,  but 
in windows if you use gtk# you have all gtk+/cairo/glib dependencies.
Besides in windows with winforms you don´t have any memory fragmentation 
if you don´t want because gdiflat[1] is very studied for that. I believe 
in linux with cairo backend winforms have a little of overhead because 
utf-8/utf-16 conversions and the expensive use of malloc [2]. I would 
like see a real gdiflat for linux or a full native backend in OpenVG.

For me it´s clear we need a mix between the pure c# code with the 
garbage collector for GUIs and code in pure C with static code and 
memory pools or own malloc constructors.

[1] http://msdn.microsoft.com/en-us/library/ms533969(VS.85).aspx 
<http://msdn.microsoft.com/en-us/library/ms533969%28VS.85%29.aspx>  
<http://code.google.com/soc/2008/gnome/appinfo.html?csaid=E035EFCF6CB02DF5>
[2]  
http://code.google.com/soc/2008/gnome/appinfo.html?csaid=E035EFCF6CB02DF5
> I'd personally prefer GTK#, though it can look out of place on 
> windows. Similarly Winforms definitely looks out of place on linux. 
> It's a tradeoff. The ideal option would be for you to create a UI 
> using both toolkits so it looks native on both platforms, but this may 
> not be an option due to limited resources etc.
>  
>
>     How to allow other users to contribute to the project if they will
>     work on Windows and others (me) on Linux?
>
>
> On windows, use VS/SharpDevelop. On linux use MonoDevelop.
>
>
>     I know projects' format diferencies between MS Visual Studio,
>     SharpDevelop and MonoDevelop. How help this IEDs to work with the
>     same project and code base?
>
>
> All three IDEs support the Visual Studio project format, so just use 
> that.
>
> Alan.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>   


-- 
Martín R. Vales,
Intergeo Tecnología (IGT)
El Escorial (Madrid
__
www.intergeotecnologia.com






More information about the Mono-devel-list mailing list