WPF Class