Report question

Question: What is the advantage of setting DataContext in code instead of XAML?