How to reference blueprint as a type in C++

#Extending UUserWidget

Are you really making a regular UCompoundWidget into a blueprint?!

Or are you using UUserWidget?

in the later case see this tutorial by WCode

A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums.

My response is still valid for anyone reading your question in regards to Bluepirnts in general

But for slate you should see the Slate tutorials on the wiki and the above tutorial