mail-archives/gtk-sharp-list/2006-April/007128.html

110 строки
4.6 KiB
HTML
Исходник Обычный вид История

2019-06-06 22:02:55 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Databindig IList to a Gtk.TreeView
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Databindig%20IList%20to%20a%20Gtk.TreeView&In-Reply-To=1145904560.5447.14.camel%40localhost.localdomain">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007127.html">
<LINK REL="Next" HREF="007129.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Databindig IList to a Gtk.TreeView</H1>
<B>Mike Kestner</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Databindig%20IList%20to%20a%20Gtk.TreeView&In-Reply-To=1145904560.5447.14.camel%40localhost.localdomain"
TITLE="[Gtk-sharp-list] Databindig IList to a Gtk.TreeView">mkestner at novell.com
</A><BR>
<I>Mon Apr 24 15:28:29 EDT 2006</I>
<P><UL>
<LI>Previous message: <A HREF="007127.html">[Gtk-sharp-list] Databindig IList to a Gtk.TreeView
</A></li>
<LI>Next message: <A HREF="007129.html">[Gtk-sharp-list] Databindig IList to a Gtk.TreeView
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7128">[ date ]</a>
<a href="thread.html#7128">[ thread ]</a>
<a href="subject.html#7128">[ subject ]</a>
<a href="author.html#7128">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Mon, 2006-04-24 at 20:49 +0200, Philip Van Hoof wrote:
&gt;<i> No but. Mike Kestner was not allowed to use a keyboard this weekend (ask
</I>&gt;<i> him, and his wife), so he didn't yet take a look at it.
</I>
Wow, I didn't think that would get broadcast to the world. ;-)
&gt;<i> I don't know
</I>&gt;<i> whether or not it's already ready for inclusion in a future Gtk-Sharp
</I>&gt;<i> version.
</I>&gt;<i>
</I>&gt;<i> I think it needs some more features and improvements. But your work
</I>&gt;<i> which made it work with combo boxes is a nice step into that direction,
</I>&gt;<i> I guess.
</I>
I'll just weigh in here briefly about the expectations from the Gtk#
side. Don't want anyone to think I'm ignoring the discussion. We are
definitely interested in a databinding solution for Gtk#.
Some observations:
Everyone seems to jump right to the tree model when they think
databinding. I'm not sure this is the best approach, although I
understand that TreeView/ComboBox are big draws.
If I were to approach a databinding solution, I would start with
something like a data bound checkbox and build the infrastructure it
takes to hook that into a &quot;DataSource&quot; and &quot;Field&quot;. When you start
thinking this way, it becomes clear that the hooks for this need to go
deeper, at the Gtk.Widget level, probably.
While I'm not certain we want to follow the .Net mechanism exactly, I
want the user interface aspects to parallel the way databinding is
exposed in SWF. If we can reuse System.ComponentModel features to make
our lives easier, so much the better. We should try to better
understand how mono's System.Web and SWF databinding works before trying
to implement a solution for Gtk#.
I think it's good to pursue this is an external project for now as you
are doing. The majority of the code should probably be
internal/non-public API with the exception of the
DataSource/Field/etc... API. With proper planning, it should be
possible to develop as a standalone project to be merged into Gtk# when
it matures. Of course, since I'll have to maintain it going forward, it
will need to meet the standards that typically apply: coding standards,
readability, etc...
I'll follow your efforts as closely as I can and give feedback. Please
keep us posted.
--
Mike Kestner &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">mkestner at novell.com</A>&gt;
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007127.html">[Gtk-sharp-list] Databindig IList to a Gtk.TreeView
</A></li>
<LI>Next message: <A HREF="007129.html">[Gtk-sharp-list] Databindig IList to a Gtk.TreeView
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7128">[ date ]</a>
<a href="thread.html#7128">[ thread ]</a>
<a href="subject.html#7128">[ subject ]</a>
<a href="author.html#7128">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>