merged from boxybasics wpf