My branch

Foreach part is not suit for WPF, It needs to be changed with proper WPF approach.