资源简介

微软官方非常漂亮的WPF案例源码 费心整理的 喜欢的评个好评哈 谢谢

资源截图

代码片段和文件信息

//-----------------------------------------------------------------------
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
//     Helper methods
// 

//-----------------------------------------------------------------------
namespace EffectLibrary
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Reflection;

    /// 
    /// Helper global class for extensible effects.
    /// 

    internal static class Global
    {
        /// 
        /// The short name of the this assembly.
        /// 

        private static string assemblyShortName;

        /// 
        /// Gets the short name of the this assembly without the file extension.
        /// 

        private static string AssemblyShortName
        {
            get
            {
                if (assemblyShortName == null)
                {
                    Assembly a = typeof(Global).Assembly;

                    // Pull out the short name.
                    assemblyShortName = a.ToString().Split(‘‘)[0];
                }

                return assemblyShortName;
            }
        }

        /// 
        /// Creates a pack URI to an embedded file within the EffectLibrary assembly.
        /// 

        /// The name of the embedded Resource file.
        /// A pack URI.
        public static Uri MakePackUri(string relativeFile)
        {
            string uriString = “pack://application:/“ + AssemblyShortName + “;component/“ + relativeFile;
            return new Uri(uriString);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        2843  2018-03-03 17:51  images.pdf
     目录           0  2018-03-09 13:04  __MACOSX\
     文件         451  2018-03-03 17:51  __MACOSX\._images.pdf
     目录           0  2018-03-09 13:03  ScePhotoViewer\
     目录           0  2018-03-09 13:03  ScePhotoViewer\EffectLibrary\
     目录           0  2018-03-09 13:03  ScePhotoViewer\EffectLibrary\Converters\
     文件        2185  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\Converters\SizeToDoubleConverter.cs
     目录           0  2018-03-09 13:04  __MACOSX\ScePhotoViewer\
     目录           0  2018-03-09 13:04  __MACOSX\ScePhotoViewer\EffectLibrary\
     目录           0  2018-03-09 13:04  __MACOSX\ScePhotoViewer\EffectLibrary\Converters\
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\Converters\._SizeToDoubleConverter.cs
     文件        2120  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\Converters\VectorToDoubleConverter.cs
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\Converters\._VectorToDoubleConverter.cs
     文件         174  2018-03-09 13:03  __MACOSX\ScePhotoViewer\EffectLibrary\._Converters
     文件        8459  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\EffectLibrary.csproj
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\._EffectLibrary.csproj
     文件         915  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\EffectLibrary.sln
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\._EffectLibrary.sln
     目录           0  2018-03-09 13:03  ScePhotoViewer\EffectLibrary\Effects\
     文件        4380  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\Effects\BandedSwirlEffect.cs
     目录           0  2018-03-09 13:04  __MACOSX\ScePhotoViewer\EffectLibrary\Effects\
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\Effects\._BandedSwirlEffect.cs
     文件        4366  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\Effects\BrickMasonEffect.cs
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\Effects\._BrickMasonEffect.cs
     文件        9268  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\Effects\BulgeAndPinchEffect.cs
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\Effects\._BulgeAndPinchEffect.cs
     文件        3453  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\Effects\DirectionalBlurEffect.cs
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\Effects\._DirectionalBlurEffect.cs
     文件        4827  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\Effects\InvertColorEffect.cs
     文件         174  2008-08-26 12:12  __MACOSX\ScePhotoViewer\EffectLibrary\Effects\._InvertColorEffect.cs
     文件       10150  2008-08-26 12:12  ScePhotoViewer\EffectLibrary\Effects\MagnifyEffect.cs
............此处省略854个文件信息

评论

共有 条评论