Implemented Event subscription in XamlLoader.