• 大小: 0.09M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: wpf  播放  音频  wp  

资源简介

可以播放 avi/mp3等音频文件

资源截图

代码片段和文件信息

using System;
using System.Windows;
using System.Windows.Forms;
using System.Windows.Interop;

namespace VideoPlayer
{
    public static class AllScreen
    {
        private static Window _fullWindow;
        private static WindowState _windowState;
        private static Windowstyle _windowstyle;
        private static bool _windowTopMost;
        private static ResizeMode _windowResizeMode;
        private static Rect _windowRect;

        /// 
        /// 进入全屏
        /// 

        /// 
        public static void GoFullscreen(this Window window)
        {
            //存储窗体信息
            _windowState = window.WindowState;
            _windowstyle = window.Windowstyle;
            _windowTopMost = window.Topmost;
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-10-12 22:33  VideoPlayer\
     文件        3839  2011-10-12 22:46  VideoPlayer\AllScreen.cs
     文件         273  2011-10-12 22:46  VideoPlayer\App.xaml
     文件         192  2011-10-12 22:46  VideoPlayer\App.xaml.cs
     文件      461334  2010-04-14 21:18  VideoPlayer\back.bmp
     目录           0  2011-10-12 21:49  VideoPlayer\bin\
     目录           0  2011-10-12 22:47  VideoPlayer\bin\Debug\
     文件       11600  2011-10-12 22:46  VideoPlayer\bin\Debug\VideoPlayer.vshost.exe
     文件         490  2010-03-17 22:39  VideoPlayer\bin\Debug\VideoPlayer.vshost.exe.manifest
     文件        1971  2011-10-12 22:46  VideoPlayer\MainWindow.xaml
     文件        3739  2011-10-12 22:47  VideoPlayer\MainWindow.xaml.cs
     目录           0  2011-10-12 21:49  VideoPlayer\obj\
     目录           0  2011-10-12 21:49  VideoPlayer\obj\x86\
     目录           0  2011-10-12 22:47  VideoPlayer\obj\x86\Debug\
     文件        2201  2011-10-12 22:47  VideoPlayer\obj\x86\Debug\App.g.i.cs
     文件       13956  2011-10-12 22:46  VideoPlayer\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6574  2011-10-12 22:47  VideoPlayer\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        9629  2011-10-12 22:47  VideoPlayer\obj\x86\Debug\MainWindow.g.i.cs
     目录           0  2011-10-12 21:49  VideoPlayer\obj\x86\Debug\TempPE\
     文件        4608  2011-10-12 21:49  VideoPlayer\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         501  2011-10-12 22:08  VideoPlayer\obj\x86\Debug\VideoPlayer_Content.g.i.cs
     文件         257  2011-10-12 22:47  VideoPlayer\obj\x86\Debug\VideoPlayer_MarkupCompile.i.cache
     目录           0  2011-10-12 21:49  VideoPlayer\Properties\
     文件        2247  2011-10-12 22:46  VideoPlayer\Properties\AssemblyInfo.cs
     文件        2850  2011-10-12 21:49  VideoPlayer\Properties\Resources.Designer.cs
     文件        5612  2011-10-12 21:49  VideoPlayer\Properties\Resources.resx
     文件        1096  2011-10-12 21:49  VideoPlayer\Properties\Settings.Designer.cs
     文件         203  2011-10-12 22:46  VideoPlayer\Properties\Settings.settings
     文件        4501  2011-10-12 22:47  VideoPlayer\VideoPlayer.csproj

评论

共有 条评论