|
10 | 10 | Title="YoutubeExplode Demo"
|
11 | 11 | Width="720"
|
12 | 12 | Height="620"
|
| 13 | + x:DataType="viewModels:MainViewModel" |
13 | 14 | Icon="/favicon.ico"
|
14 | 15 | Loaded="Window_OnLoaded"
|
15 | 16 | WindowStartupLocation="CenterScreen">
|
|
251 | 252 | <Button
|
252 | 253 | Padding="4"
|
253 | 254 | VerticalAlignment="Center"
|
254 |
| - Command="{Binding $parent[Window].DataContext.DownloadStreamCommand}" |
| 255 | + Command="{Binding $parent[Window].((viewModels:MainViewModel)DataContext).DownloadStreamCommand}" |
255 | 256 | CommandParameter="{Binding}"
|
256 | 257 | Theme="{DynamicResource MaterialFlatButton}">
|
257 | 258 | <materialIcons:MaterialIcon
|
|
292 | 293 | <Button
|
293 | 294 | Padding="4"
|
294 | 295 | VerticalAlignment="Center"
|
295 |
| - Command="{Binding $parent[Window].DataContext.DownloadStreamCommand}" |
| 296 | + Command="{Binding $parent[Window].((viewModels:MainViewModel)DataContext).DownloadStreamCommand}" |
296 | 297 | CommandParameter="{Binding}"
|
297 | 298 | Theme="{DynamicResource MaterialFlatButton}">
|
298 | 299 | <materialIcons:MaterialIcon
|
|
333 | 334 | <Button
|
334 | 335 | Padding="4"
|
335 | 336 | VerticalAlignment="Center"
|
336 |
| - Command="{Binding $parent[Window].DataContext.DownloadStreamCommand}" |
| 337 | + Command="{Binding $parent[Window].((viewModels:MainViewModel)DataContext).DownloadStreamCommand}" |
337 | 338 | CommandParameter="{Binding}"
|
338 | 339 | Theme="{DynamicResource MaterialFlatButton}">
|
339 | 340 | <materialIcons:MaterialIcon
|
|
384 | 385 | <Button
|
385 | 386 | Padding="4"
|
386 | 387 | VerticalAlignment="Center"
|
387 |
| - Command="{Binding $parent[Window].DataContext.DownloadClosedCaptionTrackCommand}" |
| 388 | + Command="{Binding $parent[Window].((viewModels:MainViewModel)DataContext).DownloadClosedCaptionTrackCommand}" |
388 | 389 | CommandParameter="{Binding}"
|
389 | 390 | Theme="{DynamicResource MaterialFlatButton}">
|
390 | 391 | <materialIcons:MaterialIcon
|
|
0 commit comments