示例#1
0
        protected override void Configure()
        {
            var config = LoadConfig();
            _container = new WinRTContainer();
            _container.RegisterWinRTServices();

            _container.UseShell();
            _container.UseAudio();
            _container.UsePlaylist();
            _container.UsePlugins()
                .AddLastFm(config.LastFmApiKey)
                .AddLocalLyrics();
            _eventAggregator = _container.GetInstance<IEventAggregator>();
            ViewModelBinder.ApplyConventionsByDefault = false;
        }