Example #1
0
        public MainPage()
        {
            var configFileLogic = new MetroConfigFileLogic(ApplicationData.Current.LocalFolder, "test.config");

            _content = new ConfigurationViewModel();
            _config = new ConfigurationManager(configFileLogic);

            this.InitializeComponent();
            DataContext = this;
        }
        public MainWindow()
        {
            var configPath = System.IO.Path.Combine(Environment.CurrentDirectory, "test.config");
            var configFileLogic = new WpfConfigFileLogic(configPath);

            _content = new ConfigurationViewModel();
            _config = new ConfigurationManager(configFileLogic);

            InitializeComponent();
            DataContext = this;
        }