- add submodule
git submodule add https://github.com/Coloryr/AvaloniaKeyboard.git
git submodule update --init --recursive
and add project AvaloniaKeyboard
- add style
<StyleInclude Source="avares:https://AvaloniaKeyboard/Views/KeyboardControl.axaml" />
- use it
xmlns:view="clr-namespace:AvaloniaKeyboard.Views;assembly=AvaloniaKeyboard"
<StackPanel>
<TextBox Name="Text1" />
<view:KeyboardControl Name="Input1" TextBox="{ResolveByName Text1}" />
</StackPanel>
Keyboard must set a TextBox TextBox can set from code or xaml
With Rime
-
Download rime In Action download zip and unzip it. copy
rime.dll
to yourRun Path
-
Download data make a dir
data
download all data from librime
- net8.0 \
- data \
- cangjie5.dict.yaml
- cangjie5.schema.yaml
- default.yaml
- ...
- rime.dll
- RimeSharp.dll
- AvaloniaKeyboard.dll
- {your program.exe}
- ...
- Init Rime
using AvaloniaKeyboard;
RimeUtils.Init();