public MainPage() { var configFileLogic = new MetroConfigFileLogic(ApplicationData.Current.LocalFolder, "test.config"); _content = new ConfigurationViewModel(); _config = new ConfigurationManager(configFileLogic); this.InitializeComponent(); DataContext = this; }