Move setDataContext to Binding and CommandBinding and fix bug