public NativeStyleRenderer(IntPtr handle, VisualStyleElement element) { if (element == null) { throw new ArgumentNullException("element", "element is null."); } _theme = UxTheme.OpenTheme(handle, element.ClassName); _partId = element.Part; _stateId = element.State; }