void UpdateStyle() { var s = itemStyle != null ? itemStyle : regionStyle; if (s != currentVisualStyle) { currentVisualStyle = s; if (titleTab != null) { titleTab.VisualStyle = s; } if (widget != null) { widget.VisualStyle = s; } frame.UpdateStyle(this); } }