BuilderListItemFactory
Object Hierarchy:
Description:
public sealed class BuilderListItemFactory : ListItemFactory
Creates widgets by instantiating `GtkBuilder` UI templates.
The templates must extend the class that the parent widget expects. For example, a factory provided to [property@Gtk.ListView:factory] must have a template that extends [class@Gtk.ListItem].
Templates typically use [class@Gtk.Expression] to obtain data from the items in the model.
Example: ```xml <interface> <template class="GtkListItem"> <property name="child"> <object class="GtkLabel"> < property name="xalign">0</property> <binding name="label"> <lookup name="name" type="SettingsKey"> <lookup name="item">GtkListItem</lookup> </lookup> </binding> </object> </property> </template> < /interface> ```
A common approach is to embed such templates as CDATA marked sections into a surrounding UI file. Note that if you use this approach, extracting translatable strings with xgettext will not work for strings inside the marked section.