Example #1
0
        public SnappedPlayerBindingModel(
            SongsBindingModel songsBindingModel,
            IMediaElementContainer mediaElementContainer,
            IPlayQueueService playQueueService,
            IEventAggregator eventAggregator,
            IDispatcher dispatcher)
        {
            this.mediaElementContainer = mediaElementContainer;
            this.playQueueService      = playQueueService;
            this.eventAggregator       = eventAggregator;
            this.dispatcher            = dispatcher;
            this.SongsBindingModel     = songsBindingModel;

            this.eventAggregator.GetEvent <QueueChangeEvent>().Subscribe(
                async(e) => await this.dispatcher.RunAsync(() =>
            {
                this.RaisePropertyChanged(() => this.IsShuffleEnabled);
                this.RaisePropertyChanged(() => this.IsRepeatAllEnabled);
            }));
        }
Example #2
0
 public PlaylistPageViewBindingModel(
     SongsBindingModel songsBindingModel)
 {
     this.SongsBindingModel = songsBindingModel;
 }