Is it possible to name something in XAML without getting a field for that object?
- by Mikael Sundberg
I use x:Name to name an element in XAML because I want to be able to reference it using Storyboard.TargetName but everything that has x:Name set also gets a field generated in the code-behind. Is it possible to target an element with Storyboard.TargetName without getting a field (which FxCop gives a warning about unused private code for).
Thanks.