Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
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:


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

<!-- TextBlock -->

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!

Posted 10-27-2008 4:04 PM by Christopher Bennage
Filed under: , ,


About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)