本文实例演示C#WPF视频播放器
实例如下:
修改mainwindow的代码
- <Window
- x:Class="PlayerDemo.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PlayerDemo"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- x:Name="window"
- Title="本地视频播放器"
- Width="900"
- Height="600"
- Loaded="Window_Loaded"
- mc:Ignorable="d">
- <Window.Resources>
- <Style x:Key="BtnInfoStyle" TargetType