This class does not follow MVVM pattern. You should not use code-behind, use binding.