void SetAlignment() { Control.ResetWidth(); Control.Justify = horizontalAlign.ToGtk(); Control.SetAlignment(horizontalAlign.ToAlignment(), verticalAlign.ToAlignment()); eventBox.ResizeChildren(); }
void SetAlignment() { Control.ResetWidth(); Control.Justify = horizontalAlign.ToGtk(); Control.Xalign = horizontalAlign.ToAlignment(); Control.Yalign = verticalAlign.ToAlignment(); #if GTK2 eventBox.ResizeChildren(); #endif }