2 Star 4 Fork 2

u1s10 / XamlViewer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

XAML Viewer

XAML 是一个轻量的 XAML 编辑器。编辑代码的同时,能够实时显示设计预览。不仅提供高效的文档管理,还支持友好的的智能提示。当你正在学习或尝试编写某些 XAML 效果时,它一定是一个不错的选择。你也可以在 Github 上找到该项目。

Preview

编译

  1. .Net Core 3.1 SDK and .Net Framework 4.5 Dev Pack;
  2. Visual Studio Code or Visual Studio 2019;
  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. 声明命名空间时,请使用如下格式:
xmlns:controls="clr-namespace:MyControl.Controls;assembly=MyControl"

数据源

1. 对象

DataSource

<TextBlock Tag="{Binding id}"
           IsEnabled="{Binding enabled}"
           Text="{Binding child.name}"/>

2. 数组

DataSource

<ItemsControl ItemsSource="{Binding .}">
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <TextBlock Tag="{Binding id}"
		       IsEnabled="{Binding enabled}"
		       Text="{Binding name}"/>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>

第三方声明

版本 许可
Prism 7.2.0.1422 MIT
Microsoft.Xaml.Behaviors 1.1.19 MIT
AvalonEdit 6.0.1 MIT
Json.NET 12.0.3 MIT
MIT License Copyright (c) 2019 huangjia2107 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

XAML Viewer 是一个轻量级的支持实时预览的 XAML 编辑器 展开 收起
C#
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/huangjia2107/XamlViewer.git
git@gitee.com:huangjia2107/XamlViewer.git
huangjia2107
XamlViewer
XamlViewer
master

搜索帮助