Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions accelerate/components/virtual-keyboard/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ Include your Avalonia UI license key in the executable project file (`.csproj`):
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.
:::

### Include the Control Theme

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:

```xml
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="YourNamespace.App">
<Application.Styles>
<FluentTheme />
<!-- Include the Virtual Keyboard theme -->
<StyleInclude Source="avares://Avalonia.Controls.Keyboard/Themes/Fluent.axaml"/>
</Application.Styles>
</Application>
```

## Requirements

- Avalonia 11.3.7 or newer
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/styles-and-resources/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Styles are applied in order of declaration. If there are multiple style files in
<StyleInclude Source="Style2.axaml" />
```

Here styles from file **Styles1.axaml** were applied first, so setters in styles of file **Styles2.axaml** take priority. The resulting TextBlock will have FontSize="16" and Foreground="Green". The same order prioritization happens within style files also.
Here styles from file **Styles1.axaml** were applied first, so setters in styles of file **Styles2.axaml** take priority. The resulting TextBlock will have FontSize="16" and Foreground="Blue". The same order prioritization happens within style files also.

## Locally Set Properties Have Priority

Expand Down