Ejemplo n.º 1
0
 private void CreateBindings()
 {
     // menu bar
     PlayButton.SetBinding(IsEnabledProperty, new Binding("PlayButtonEnabled")
     {
         Source = _menuBarModel,
         Mode   = BindingMode.OneWay
     });
     PlayButtonImage.SetBinding(Image.SourceProperty, new Binding("PlayButtonImage")
     {
         Source = _menuBarModel,
         Mode   = BindingMode.OneWay
     });
     ProgressLabel.SetBinding(ContentProperty, new Binding("Progress")
     {
         Source = _menuBarModel,
         Mode   = BindingMode.OneWay
     });
     NowPlayingLabel.SetBinding(ContentProperty, new Binding("NowPlaying")
     {
         Source = _menuBarModel,
         Mode   = BindingMode.OneWay
     });
 }