Dapatkan DataContext of Parent WPF
Binding="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type Window}}, Path=DataContext.AllowItemCommand}"
Poor Pelican