C# - Wpf Code Snippets