Open
Description
DependencyProperty standard 'propdp' template doesn't work. Add clear guidance and a VS Regex example to convert to the proper setup.
cc/ @Scottj1s
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
michael-hawker commentedon Jul 21, 2021
It should also be updated from the old one to use
nameof
instead of a hard-coded string:StephenLPeters commentedon Jul 28, 2021
@anawishnoff FYI
anawishnoff commentedon Jul 28, 2021
@angelazhangmsft Do we have docs currently that are lacking modern examples or is this a suggestion to draft up a new article about DependencyProperty?
marcelwgn commentedon Jul 28, 2021
@anawishnoff I think this is about the Visual Studio snippets that one can use to create a DependencyProperty.
michael-hawker commentedon Jan 12, 2023
@bpulliam do you know where the Visual Studio snippets for XAML live? Is this something that the Windows App SDK package can update or is it in VS iteself (this would work for all XAML flavors using this snippet anyway)? It'd be nice to use
nameof
and make it easier to refactor property names by not having a hard-coded string for dependency properties here.