Skip to content

Commit

Permalink
Fixed file path in VideoViewerDemo (#518)
Browse files Browse the repository at this point in the history
* Fixed file path in VideoViewerDemo

* Copying media to output directory and then referencing it

* Update VideoViewerDemo.csproj

---------

Co-authored-by: Dipesh Kumar <[email protected]>
  • Loading branch information
anjali-wpf and dipeshmsft authored Aug 26, 2024
1 parent 89edad3 commit 467f26b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sample Applications/VideoViewerDemo/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- Setting the Directory to the relative path pointing to the Media folder.-->
<!-- Giving this an x:Key. Now controls in this Window can bind to the videos in the Media folder.-->
<Window.Resources>
<local:MyVideos Directory="../../media" x:Key="Vids" />
<local:MyVideos Directory="./media" x:Key="Vids" />

<DataTemplate x:Key="MainScreenTemplate">
<Border BorderBrush="LimeGreen" BorderThickness="2"
Expand Down
7 changes: 3 additions & 4 deletions Sample Applications/VideoViewerDemo/VideoViewerDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@
<ItemGroup>
<Resource Include="images\crystal.jpg" />
<Resource Include="images\preview.png" />
<Content Include="media\day7.wmv" />
<Content Include="media\msdn news.wmv" />
<Content Include="media\my xbox clip.wmv" />
<Content Include="media\the dotnet show.wmv" />
<Content Include="media\*.wmv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

0 comments on commit 467f26b

Please sign in to comment.