You can access resources on any FrameworkElementone as long as the element contains any resources. If it is defined in your markup, it must have x:Keyand cannot have x:Name.
If the button contains a resource, for example, you should access it from your collection Resources.
var resource = button.Resources["myKey"];
, , FindResource() .
var resource = this.FindResource("myKey");
.