WPF Resource file attached to Style file: Error -> The name 'InitializeComponent' does not exist in the current context
Is it possible to set code behind a resource dictionary in WPF for event handling?