Window.Resources is changed to UserControl.Resources

r