wpf code for tv