The xaml you provide will complain about alot but not about a resource that cannot be resolved.
1) You're setting
Effect
twice in your style.
2) you're setting
Effect
to a
CornerRadius
and then a Border instance, but the property Effect is of the type
Effect[
^]
3) you'll need to close the TextBox tag
<TextBox ... />
4) you'll need to close the Grid tag
<Grid><TextBox.../></Grid>
once you cleared that up it will compile