Giter VIP home page Giter VIP logo

wpf-common-ui-tools's Introduction

通用工具库

CommonTools 引入

首先创建 Lib\Net8 文件夹,然后将相应生成的 .dll,.xml(文档,非必须) 文件复制进去

.csproj 文件加入如下配置:

<ItemGroup>
  <PackageReference Include="AutoMapper" Version="13.0.1" />
  <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
  <PackageReference Include="Karambolo.Extensions.Logging.File" Version="3.5.0" />
  <PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
  <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
  <Reference Include="CommonTools">
    <HintPath>Lib\Net8\CommonTools.dll</HintPath>
  </Reference>
</ItemGroup>

CommonUITools 引入

首先创建 Lib\Net8 文件夹,然后将相应生成的 .dll,.xml(文档,非必须) 文件复制进去

  1. .csproj 文件加入如下配置:
<ItemGroup>
  <PackageReference Include="AutoMapper" Version="13.0.1" />
  <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
  <PackageReference Include="Karambolo.Extensions.Logging.File" Version="3.5.0" />
  <PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
  <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
  <PackageReference Include="ModernWpfUI" Version="0.9.6" />
  <PackageReference Include="SharpVectors" Version="1.8.1" />
  <PackageReference Include="System.Drawing.Common" Version="8.0.0" />
  <PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>

<ItemGroup>
  <Reference Include="CommonTools">
    <HintPath>Lib\Net8\CommonTools.dll</HintPath>
  </Reference>
  <Reference Include="CommonUITools">
    <HintPath>Lib\Net8\CommonUITools.dll</HintPath>
  </Reference>
</ItemGroup>
  1. App.xaml 文件
xmlns:ui="http://schemas.modernwpf.com/2019"

<Application.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
      <ui:ThemeResources />
      <ui:XamlControlsResources />
      <ResourceDictionary Source="/CommonUITools;component/Themes/Generic.xaml" />
    </ResourceDictionary.MergedDictionaries>
  </ResourceDictionary>
</Application.Resources>
  1. Window 继承自 CommonUITools.Controls.BaseWindow

  2. 引用:xmlns:tools="wpf-common-ui-tools"

wpf-common-ui-tools's People

Contributors

yuruyan avatar

Stargazers

RoyLai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.