Browse Source

Merge pull request #5955 from abpframework/liangshiwei/wpf-template-doc

Create WPF startup project document
pull/5966/head
maliming 6 years ago
committed by GitHub
parent
commit
b76472c64c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/en/Startup-Templates/Index.md
  2. 27
      docs/en/Startup-Templates/WPF.md
  3. 8
      docs/en/docs-nav.json
  4. BIN
      docs/en/images/basic-wpf-application-solution.png
  5. 3
      docs/zh-Hans/Startup-Templates/Index.md
  6. 27
      docs/zh-Hans/Startup-Templates/WPF.md
  7. 8
      docs/zh-Hans/docs-nav.json
  8. BIN
      docs/zh-Hans/images/basic-wpf-application-solution.png

1
docs/en/Startup-Templates/Index.md

@ -5,3 +5,4 @@ While you can start with an empty project and add needed packages manually, star
* [**app**](Application.md): Application template. * [**app**](Application.md): Application template.
* [**module**](Module.md): Module/service template. * [**module**](Module.md): Module/service template.
* [**console**](Console.md): Console template. * [**console**](Console.md): Console template.
* [**WPF**](WPF.md): WPF template.

27
docs/en/Startup-Templates/WPF.md

@ -0,0 +1,27 @@
# WPF Application Startup Template
This template is used to create a minimalist WPF application project.
## How to Start With?
First, install the [ABP CLI](../CLI.md) if you haven't installed before:
````bash
dotnet tool install -g Volo.Abp.Cli
````
Then use the `abp new` command in an empty folder to create a new solution:
````bash
abp new Acme.MyWpfApp -t wpf
````
`Acme.MyWpfApp` is the solution name, like *YourCompany.YourProduct*. You can use single level, two-levels or three-levels naming.
## Solution Structure
After you use the above command to create a solution, you will have a solution like shown below:
![basic-wpf-application-solution](../images/basic-wpf-application-solution.png)
* `HelloWorldService` is a sample service that implements the `ITransientDependency` interface to register this service to the [dependency injection](../Dependency-Injection.md) system.

8
docs/en/docs-nav.json

@ -11,6 +11,10 @@
"text": "Console Application", "text": "Console Application",
"path": "Startup-Templates/Console.md" "path": "Startup-Templates/Console.md"
}, },
{
"text": "WPF Application",
"path": "Startup-Templates/WPF.md"
},
{ {
"text": "Empty Web Project", "text": "Empty Web Project",
"path": "Getting-Started-AspNetCore-Application.md" "path": "Getting-Started-AspNetCore-Application.md"
@ -805,6 +809,10 @@
{ {
"text": "Console", "text": "Console",
"path": "Startup-Templates/Console.md" "path": "Startup-Templates/Console.md"
},
{
"text": "WPF",
"path": "Startup-Templates/WPF.md"
} }
] ]
}, },

BIN
docs/en/images/basic-wpf-application-solution.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

3
docs/zh-Hans/Startup-Templates/Index.md

@ -6,4 +6,5 @@
* [**app**](Application.md): 应用程序模板. * [**app**](Application.md): 应用程序模板.
* [**module**](Module.md): 模块/服务模板. * [**module**](Module.md): 模块/服务模板.
* [**console**](Console.md): 控制台模板. * [**console**](Console.md): 控制台模板.
* [**WPF**](WPF.md): WPF模板.

27
docs/zh-Hans/Startup-Templates/WPF.md

@ -0,0 +1,27 @@
# WPF应用程序启动模板
此模板用于创建一个最小的依赖关系的ABP WPF应用程序项目.
## 如何开始?
首先,如果你没有安装[ABP CLI](../CLI.md),请先安装它:
````bash
dotnet tool install -g Volo.Abp.Cli
````
在一个空文件夹使用 `abp new` 命令创建新解决方案:
````bash
abp new Acme.MyWpfApp -t wpf
````
`Acme.MyWpfApp` 是解决方案的名称, 如*YourCompany.YourProduct*. 你可以使用单级或多级名称.
## 解决方案结构
使用以上命令创建解决方案后,你会得到如下所示的解决方案:
![basic-wpf-application-solution](../images/basic-wpf-application-solution.png)
* `HelloWorldService` 是一个实现了 `ITransientDependency` 接口的示例服务. 它会自动注册到[依赖注入](../Dependency-Injection.md)系统.

8
docs/zh-Hans/docs-nav.json

@ -11,6 +11,10 @@
"text": "控制台应用程序", "text": "控制台应用程序",
"path": "Startup-Templates/Console.md" "path": "Startup-Templates/Console.md"
}, },
{
"text": "WPF应用程序",
"path": "Startup-Templates/WPF.md"
},
{ {
"text": "空Web应用程序", "text": "空Web应用程序",
"path": "Getting-Started-AspNetCore-Application.md" "path": "Getting-Started-AspNetCore-Application.md"
@ -627,6 +631,10 @@
{ {
"text": "控制台", "text": "控制台",
"path": "Startup-Templates/Console.md" "path": "Startup-Templates/Console.md"
},
{
"text": "WPF",
"path": "Startup-Templates/WPF.md"
} }
] ]
}, },

BIN
docs/zh-Hans/images/basic-wpf-application-solution.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Loading…
Cancel
Save