这是一个通过Markup Extension实现的Xaml本地化的方法,很简洁的方案: <TextBlock Text="{l:Translate CustomerForm.FirstName}" />