[Mono-list] access objects in a file generated by the GUI designer
BelkisBranham
x9nx at mail.ru
Sun Feb 12 01:12:30 UTC 2012
It happens that the GUI designer after generating its partial class to
MainWindow as Gtk.Window declares objects /private global/.
Is it okay to write custom public getter for an object within the class or
should there be a utility method to search widgets within a Gtk.Window?
in the gtk-gui folder:
<code>
// This file has been generated by the GUI designer. Do not modify.
public partial class MainWindow
{
private global::Gtk.UIManager UIManager;
...
private global::Gtk.VBox vbox;
...
</code>
outside the gtk-gui folder:
<code>
public partial class MainWindow: Gtk.Window
{
...
public Gtk.VBox _vbox(){
return this.vbox;
}
...
</code>
--
View this message in context: http://mono.1490590.n4.nabble.com/access-objects-in-a-file-generated-by-the-GUI-designer-tp4380360p4380360.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list