add masterpage, wpf binding