Replaced the winforms control with wpf controls