Use the binding below for your button’s command:
{Binding DataContext.CommandName,
RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type MyUserControl}}}
This will tell it to find your UserControl and use its DataContext.