WPF设置Window的数据上下文(DataContext)为自身的XAML:

DataContext="{Binding RelativeSource={RelativeSource Self}}"
04-28 05:23