Devlico.Us
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @devlicious

Christopher Bennage

Our WPF book is now available!
follow @bennage on Twitter!
 


Navigating Xaml Resources with ReSharper

Most of our WPF projects end up with a lot of xaml resources. I do my best to try to keep them organized and easy to navigate. In many ways though, I am still learning .

I often have a resource dictionary containing all of my default styles for a given application.  When I collapse everything, the nodes all look the same:

<Style...>

And that does not help me find anything quickly. So I began prefixing them with comments:

<!-- TextBlock -->
<Style...>

Ok, that's a little better but it increasing the noise. It is just repeating information that is already there.

It had not yet occurred to me to try to use ReSharper's Find Member command [R#: Ctrl+F12]. It brought up the following list:

ReSharper rocking my xaml

In case you don't know how to interpret that, it's showing the TargetType attribute for each of the style elements. That is awesome.

Keep on rocking me ReSharper!



About Christopher Bennage

Christopher is a software developer and consultant at Blue Spire Consulting, a company he co-founded with Rob Eisenberg in 2006. He is a Christian, a marginal musician, and an armchair philosopher. His interests include programming, liberal education, science, truth, beauty, and a number of deceased British authors (C. S. Lewis, G. K. Chesterton, and most recently Owen Barfield.) He lives in Tallahassee, FL with his wife and three children and still prefers to play as the Night Elves in WarCraft 3.
Check out Devlicio.us!

Our Sponsors

Proudly Partnered With