DataContext in UserControls
问题 How are DataContext in UserControls usually set? If I do something like the below in my UserControl, DataContext = this In my Window or other Controls when I want to use the Control with a Binding, I will have to have a RelativeSource to point to the Window/UserControl <local:UserControl1 TextContent="{Binding Text1, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" /> Is the way to bind Controls within UserControls: set use RelativeSource in UserControls instead of DataContext ?