Changed WindowStyle from type to data.