Fixed problem with margins in wpf application