• 大小: 3.86M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-05-02
  • 语言: C#
  • 标签: Control  dyc  and  co  

资源简介

HandyControl是一套WPF控件库,它几乎重写了所有原生样式,同时包含80余款自定义控件

资源截图

代码片段和文件信息

using System;
using System.Runtime.InteropServices;
using System.Threading;
using Microsoft.VisualStudio.Shell;
using Task = System.Threading.Tasks.Task;

namespace HandyControl_VS2019
{
    /// 
    /// This is the class that implements the package exposed by this assembly.
    /// 

    /// 
    /// 
    /// The minimum requirement for a class to be considered a valid package for Visual Studio
    /// is to implement the IVsPackage interface and register itself with the shell.
    /// This package uses the helper classes defined inside the Managed Package framework (MPF)
    /// to do it: it derives from the Package class that provides the implementation of the
    /// IVsPackage interface and uses the registration attributes defined in the framework to
    /// register itself and its components with the shell. These attributes tell the pkgdef creation
    /// utility what data to put into .pkgdef file.
    /// 

    /// 
    /// To get loaded into VS the package must be referred by <Asset Type=“Microsoft.VisualStudio.VsPackage“ ...> in .vsixmanifest file.
    /// 

    /// 

    [PackageRegistration(UseManagedResourcesOnly = true AllowsBackgroundLoading = true)]
    [Guid(PackageGuidString)]
    public sealed class HandyControl_VS2019Package : AsyncPackage
    {
        /// 
        /// HandyControl_VS2019Package GUID string.
        /// 

        public const string PackageGuidString = “157ef242-83b5-47d0-8f2f-e21dc8308151“;

        #region Package Members

        /// 
        /// Initialization of the package; this method is called right after the package is sited so this is the place
        /// where you can put all the initialization code that rely on services provided by VisualStudio.
        /// 

        /// A cancellation token to monitor for initialization cancellation which can occur when VS is shutting down.
        /// A provider for progress updates.
        /// A task representing the async work of package initialization or an already completed task if there is none. Do not return null from this method.
        protected override async Task InitializeAsync(CancellationToken cancellationToken IProgress progress)
        {
            // When initialized asynchronously the current thread may be a background thread at this point.
            // Do any initialization that requires the UI thread after switching to the UI thread.
            await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
        }

        #endregion
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2021-02-08 14:01  HandyControl-master\
     文件        5801  2021-02-08 14:01  HandyControl-master\.editorconfig
     文件          66  2021-02-08 14:01  HandyControl-master\.gitattributes
     目录           0  2021-02-08 14:01  HandyControl-master\.github\
     文件         724  2021-02-08 14:01  HandyControl-master\.github\FUNDING.yml
     目录           0  2021-02-08 14:01  HandyControl-master\.github\ISSUE_TEMPLATE\
     文件         664  2021-02-08 14:01  HandyControl-master\.github\ISSUE_TEMPLATE\bug_report.md
     文件         453  2021-02-08 14:01  HandyControl-master\.github\ISSUE_TEMPLATE\config.yml
     文件         126  2021-02-08 14:01  HandyControl-master\.github\ISSUE_TEMPLATE\custom.md
     文件         612  2021-02-08 14:01  HandyControl-master\.github\ISSUE_TEMPLATE\feature_request.md
     目录           0  2021-02-08 14:01  HandyControl-master\.github\workflows\
     文件         448  2021-02-08 14:01  HandyControl-master\.github\workflows\build.yml
     文件        2260  2021-02-08 14:01  HandyControl-master\.github\workflows\dotnet-format.yml
     文件         208  2021-02-08 14:01  HandyControl-master\.gitignore
     文件        3348  2021-02-08 14:01  HandyControl-master\CODE_OF_CONDUCT.md
     目录           0  2021-02-08 14:01  HandyControl-master\Installers\
     目录           0  2021-02-08 14:01  HandyControl-master\Installers\VS2019\
     文件        2082  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019.sln
     目录           0  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\
     文件        4904  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\HandyControl_VS2019.csproj
     文件        2734  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\HandyControl_VS2019Package.cs
     文件        1072  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\License.txt
     目录           0  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\Properties\
     文件         511  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\Properties\AssemblyInfo.cs
     文件        3575  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\icon_100_100.png
     文件       11083  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\icon_300_300.png
     文件        2275  2021-02-08 14:01  HandyControl-master\Installers\VS2019\HandyControl_VS2019\source.extension.vsixmanifest
     目录           0  2021-02-08 14:01  HandyControl-master\Installers\VS2019\WpfApp\
     文件         702  2021-02-08 14:01  HandyControl-master\Installers\VS2019\WpfApp\App.xaml
     文件          76  2021-02-08 14:01  HandyControl-master\Installers\VS2019\WpfApp\App.xaml.cs
     文件         629  2021-02-08 14:01  HandyControl-master\Installers\VS2019\WpfApp\AssemblyInfo.cs
............此处省略2185个文件信息

评论

共有 条评论