Skip to content

Commit 86f6c6e

Browse files
committed
Add theme
1 parent a9dfaae commit 86f6c6e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

accelerate/components/virtual-keyboard/getting-started.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,22 @@ Include your Avalonia UI license key in the executable project file (`.csproj`):
9191
For multi-project solutions, you can store your license key in an [environment variable](https://learn.microsoft.com/en-us/visualstudio/msbuild/how-to-use-environment-variables-in-a-build) or a [shared props file](https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022#directorybuildprops-example) to avoid duplication.
9292
:::
9393

94+
### Include the Control Theme
95+
96+
To ensure the virtual keyboard is properly styled, add the keyboard theme to your application. Open your `App.axaml` file and include the following within the `Application.Styles` section:
97+
98+
```xml
99+
<Application xmlns="https://github.com/avaloniaui"
100+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
101+
x:Class="YourNamespace.App">
102+
<Application.Styles>
103+
<FluentTheme />
104+
<!-- Include the Virtual Keyboard theme -->
105+
<StyleInclude Source="avares://Avalonia.Controls.Keyboard/Themes/Fluent.axaml"/>
106+
</Application.Styles>
107+
</Application>
108+
```
109+
94110
## Requirements
95111

96112
- Avalonia 11.3.7 or newer

0 commit comments

Comments
 (0)