It's a WPF code,please don't change it