-
-
Notifications
You must be signed in to change notification settings - Fork 4
WPF Tips
Marc Rousavy edited this page Aug 23, 2018
·
3 revisions
A small collection of useful tips for WPF
- VSIX π - Use the Jellyfish Visual Studio Extension for MVVM Project/UserControl/Window templates
-
Snippets π - Use a code snippet for creating
ObservableObject
/ViewModel
properties using theSet()
function -
Enums π - Use the enum binding source extension for binding an
ItemSource
to an enum - Data Templates π - Create Data Templates to automatically bind Views to ViewModels
-
d:DesignInstance π - Use a design-time ViewModel either by setting
d:DesignInstance
to your class (or a subclass with a default constructor only for design time), or by settingd:IsDesignTimeCreatable
tofalse
to let WPF create an instance for you -
PropertyChangedAnalyzers - Use a Property Changed Analyzer extension for automatically detecting missing
Set()
invokations and more