private void CopyVideoUrl_Click(object sender, EventArgs eventArgs) { var viewModel = DataContext as PlaylistVideoPageViewModel; if (viewModel == null) { return; } VideoPageViewHelper.CopyVideoUrl(viewModel.VideoViewModel); }
private void CopyVideoUrl_Click(object sender, EventArgs eventArgs) { VideoPageViewHelper.CopyVideoUrl(DataContext as VideoPageViewModel); }