Update a foreach part

But that update is not proper solution for WPF Window.