I define my settings and styles in a ResourceDictionary:
I had set the file's "Build Action" property to "Resource". When I changed it to "Page" the problem was resolved.