static void OverrideStockLabel (Button button, string label) { var widget = GetChildWidget ((Container) button.Child, typeof (Label)); if (widget != null) ((Label) widget).LabelProp = label; }