Skip to content

Commit

Permalink
fix language target
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Mar 10, 2024
1 parent 72aa38a commit 5445067
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/document/Avalonia/docs/Beginner/1. Project Structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class ViewLocator : IDataTemplate

:::code-group

```axaml
```xml
<Application xmlns="/~https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaApplication.App"
Expand Down Expand Up @@ -128,7 +128,7 @@ public partial class App : Application

:::code-group

```axaml
```xml
<Window xmlns="/~https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:AvaloniaApplication.ViewModels"
Expand Down
6 changes: 3 additions & 3 deletions docs/document/Avalonia/docs/Beginner/2. Xml namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The semantic of `xmlns:x` basically means importing a namespace as an alias name
Then we can use `:` to access the members of the namespace.
`x:Class` binds the code behind(`.axaml.cs`) the AXAML(not the ViewModel!).

```axaml{2, 3}
```xml{2, 3}
<Application xmlns="/~https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaApplication.App"
Expand All @@ -21,7 +21,7 @@ Then we can use `:` to access the members of the namespace.
The default namespace is imported without name, which mean its members are imported globally in this AXAML file, we can access them without any prefix.
Generally the default is avalonia namespace which contains built-in components like `Button`, `TextBlock`.

```axaml{1}
```xml{1}
<Application xmlns="/~https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaApplication.App"
Expand All @@ -35,7 +35,7 @@ Generally the default is avalonia namespace which contains built-in components l

`using:AvaloniaApplication` imports the namespace from **specific project**, so `local:` is available to access the types from the project.

```axaml{3, 9-11}
```xml{3, 9-11}
<Application xmlns="/~https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AvaloniaApplication.App"
Expand Down

0 comments on commit 5445067

Please sign in to comment.