Advertisement

在WPF窗体中显示视频

阅读量:

在WPF框架中,通过使用MediaElement控件实现视频播放功能,但若要使视频呈现出与窗体深度融合的视觉效果,则需要进行一定的技术处理与优化。

以下为具体效果展示:

1.xaml代码示例如下:

复制代码
 <Window x:Class="wpf窗体中视频播放.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    
 	    x:Name="Window"
    
     	Title="MainWindow"
    
 	    Width="519" Height="

全部评论 (0)

还没有任何评论哟~