Skip to content

Commit 4fc0a99

Browse files
committed
direct content
1 parent 326b1f8 commit 4fc0a99

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

AvRichTextBox/AvRichTextBox.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

2121
<RepositoryUrl>https://github.com/cuikp/AvRichTextBox</RepositoryUrl>
2222
<RepositoryType>git</RepositoryType>
23-
<PackageReleaseNotes>ver 1.4.8: </PackageReleaseNotes>
23+
<PackageReleaseNotes>ver 1.5.0: Can add direct content to RichTextBox in Xaml</PackageReleaseNotes>
2424

2525
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
2626
<PackageOutputPath>D:\PROG\LocalNuget\AvRichTextBox</PackageOutputPath>
2727

28-
<Version>1.4.8</Version>
28+
<Version>1.5.0</Version>
2929
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
3030
<AssemblyVersion>1.0.0.0</AssemblyVersion>
3131

DemoApp_AvRichtextBox/Views/MainWindow.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
<!--<avrtb:RichTextBox x:Name="MainRTB" IsReadOnly="False" LineBreakOnShiftEnter="True" ShowDebuggerPanelInDebugMode="True" />-->
189189

190190
<!--RTB with direct content -->
191-
<avrtb:RichTextBox x:Name="MainRTB" IsReadOnly="True" LineBreakOnShiftEnter="True" ShowDebuggerPanelInDebugMode="True" >
191+
<avrtb:RichTextBox x:Name="MainRTB" IsReadOnly="False" LineBreakOnShiftEnter="True" ShowDebuggerPanelInDebugMode="True" >
192192

193193
<avrtb:RichTextBox.FlowDocument>
194194
<avrtb:FlowDocument >

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,13 @@ It can also save and load the FlowDoc content as a Word document (.docx), Rtf do
7979

8080
RtfDomParser used for parsing of rtf files can be found at https://github.com/SourceCodeBackup/RtfDomParser, but for this project I had to manually modify it to use Avalonia.Media instead of System.Drawing. Generation of .rtf is my own concoction with the bare minimum to produce a readable .rtf file/dataobject.
8181

82-
**Added 2025/02/22:
82+
#Change log
83+
##[1.0.15] - 2025/02/22:
8384
Internal binding was of the RTB itself to its viewmodel, which prevented external binding to UserControl properties (such as IsVisible). Internal binding is now to the immediate child (DockPanel "MainDP"), freeing up the properties of the UserControl itself.
8485
Also upgraded copy/paste to allow copying and pasting of paragraph breaks (\r), which were ignored before.
8586

86-
**Added 2025/02/25**
87-
ver 1.0.16 now works with Avalonia 11.1.xx & 11.2.xx! Binding update issues resolved. Previous AvRichTextBox versions failed on Avalonia 11.1 and higher and have been deprecated.
87+
##[1.0.16] 2025/02/25:
88+
Now works with Avalonia 11.1.xx & 11.2.xx! Binding update issues resolved. Previous AvRichTextBox versions failed on Avalonia 11.1 and higher and have been deprecated.
8889
In addition, added IME support for Chinese/Japanese input. Kanji and Hanzi can now be directly inputted in the RichTextBox.
8990

9091
**Added 2025/02/26**
@@ -121,3 +122,6 @@ ver 1.4.6: Further Undo improvements
121122
**Added 2026/01/30**
122123
ver 1.4.7: No DebugPanel created at all (not just hidden) in Release mode. Should have been this way from the start...
123124

125+
126+
##[1.5.0] 2026/01/30
127+
Can add direct content to RichTextBox in Xaml

0 commit comments

Comments
 (0)