mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-04 08:06:36 +08:00
@@ -114,7 +114,9 @@ var result = type.InvokeMember("Execute",
|
||||
```
|
||||
### 代码编辑模块的实现
|
||||
选择AvalonEdit控件,另外为了使用VS2019_Dark的黑色皮肤,引用官方Demo中的HL和TextEditlib实现自定义换肤。
|
||||

|
||||
|
||||

|
||||
|
||||
官方Demo的换肤写的超级复杂,看不懂,但是我们只要理解换肤的核心部分就是动态资源字典,因此我简化下,改进后的核心换肤代码如下:
|
||||
|
||||
```
|
||||
@@ -250,6 +252,10 @@ TextEditorThemeHelper.SetCurrentTheme("Light");
|
||||
是不是超级简单。
|
||||
### 代码编辑模块的编译与测试。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
### WPF打印控制台数据
|
||||
|
||||
```
|
||||
|
||||
BIN
editor.png.png
Normal file
BIN
editor.png.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 172 KiB |
Reference in New Issue
Block a user