public static void InitStageStyles(Stage stage) { //LogUtil.PrintCurrentMethod(); try { stage.RegenerateStyleCache(true); stage.StyleChanged(null); stage.NotifyStyleChangeInChildren(null, null, true); stage.StylesInitialized(); } catch (Exception ex) { //Debug.LogError(ex.Message); throw new Exception("Couldn't init Stage styles for stage: " + stage, ex); } }
private static void InitStageStyles(Stage stage/*, bool fireStylesInitialized*/) { try { stage.RegenerateStyleCache(true); stage.StyleChanged(null); stage.NotifyStyleChangeInChildren(null, null, true); /*if (fireStylesInitialized) */ stage.StylesInitialized(); } catch (Exception ex) { //Debug.LogError(ex.Message); throw new Exception("Couldn't init Stage styles", ex); } }