public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/AnyPlace;component/App.xaml", System.UriKind.Relative)); } }