# XamlViewer
**Repository Path**: huangjia2107/XamlViewer
## Basic Information
- **Project Name**: XamlViewer
- **Description**: XAML Viewer 是一个轻量级的支持实时预览的 XAML 编辑器
- **Primary Language**: C#
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 7
- **Forks**: 2
- **Created**: 2022-01-14
- **Last Updated**: 2025-02-25
## Categories & Tags
**Categories**: Uncategorized
**Tags**: WPF, XAML, Viewer, editor, Preview
## README
# XAML Viewer
XAML 是一个轻量的 XAML 编辑器。编辑代码的同时,能够实时显示设计预览。不仅提供高效的文档管理,还支持友好的的智能提示。当你正在学习或尝试编写某些 XAML 效果时,它一定是一个不错的选择。你也可以在 [Github](https://github.com/WPFDevelopersOrg/XamlViewer) 上找到该项目。

## 编译
1. [.Net Core 3.1 SDK and .Net Framework 4.5 Dev Pack](https://dotnet.microsoft.com/download);
2. [Visual Studio Code or Visual Studio 2019](https://visualstudio.microsoft.com/);
3. Windows 7 SP1/8/8.1/10
_注意:你可以根据需要在 Directory.Build.props 文件中调整 TargetFrameworks。_
## 文档管理
1. 支持的操作: 新建, 保存, 打开, 关闭, 拖动等等;
2. 对于已经打开且在 Active Files 下拉列表中的文件,支持快速选择。
_注意:在程序关闭的时候,只有本地文件会被自动保存,请及时将文件保存到本地。_
## 自动编译
1. Auto-Compile: 使能或禁用自动编译功能, 但使用 [F5] 手动编译一直生效;
2. Auto-Compile Delay: 在无任何输入的 "Auto-Compile Delay" 时间后,执行自动编译。
## 引用
1. [Setting] >> [Reference] >> [Add]: 用于添加可以直接在 XAML 中调用的自定义控件库;
2. 声明命名空间时,请使用如下格式:
``` csharp
xmlns:controls="clr-namespace:MyControl.Controls;assembly=MyControl"
```
## 数据源
### 1. 对象

``` xml
```
### 2. 数组

``` xml
```
## 第三方声明
库|版本|许可
--|:--:|--:
[Prism](https://github.com/PrismLibrary/Prism)|7.2.0.1422|[MIT](https://github.com/PrismLibrary/Prism/blob/master/LICENSE)
[Microsoft.Xaml.Behaviors](https://github.com/microsoft/XamlBehaviorsWpf)|1.1.19|[MIT](https://github.com/microsoft/XamlBehaviorsWpf/blob/master/LICENSE)
[AvalonEdit](https://github.com/icsharpcode/AvalonEdit)|6.0.1|[MIT](https://github.com/icsharpcode/AvalonEdit/blob/master/LICENSE)
[Json.NET](https://github.com/JamesNK/Newtonsoft.Json)|12.0.3|[MIT](https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md)