コード例 #1
0
        public ClipPlayer(TwitchClip twitchClip)
        {
            this.twitchClip = twitchClip;
            InitializeComponent();
            ViewModel        = new ClipPlayerViewModel(this, twitchClip);
            this.DataContext = ViewModel;

            InitializeMainWindow();

            ViewModel.Commands.OpenCommand.Execute(twitchClip.download_url);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AppCommands"/> class.
 /// </summary>
 public AppCommands(ClipPlayerViewModel ViewModel)
 {
     this.ViewModel = ViewModel;
 }
コード例 #3
0
 public ControllerViewModel(ClipPlayerViewModel clipPlayerViewModel)
 {
     Root = clipPlayerViewModel;
 }