Skip to content

Commit b1e5b76

Browse files
Merge pull request #860 from AvaloniaUI/mrlacey-patch-2
Fix XAML markup for OnPlatform structure
2 parents fdfba1a + 51e7387 commit b1e5b76

File tree

1 file changed

+2
-2
lines changed
  • docs/guides/platforms/platform-specific-code

1 file changed

+2
-2
lines changed

docs/guides/platforms/platform-specific-code/xaml.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ OnPlatform can also be used in XML syntax for defining property values:
5858
</OnPlatform.Default>
5959
<OnPlatform.iOS>
6060
<ToggleSwitch Content="Hello iOS" />
61-
</OnPlatform.Windows>
61+
</OnPlatform.iOS>
6262
</OnPlatform>
6363
</StackPanel>
6464
```
@@ -123,4 +123,4 @@ The `OnFormFactor` markup extension functions similarly to the `OnPlatform` and
123123
</UserControl>
124124
```
125125

126-
`OnFormFactor` doesn't have any compile-time trimming optimizations, as form factor cannot be known in compile time. None of these markup extensions are dynamic; once a value is set, it will not be changed.
126+
`OnFormFactor` doesn't have any compile-time trimming optimizations, as form factor cannot be known in compile time. None of these markup extensions are dynamic; once a value is set, it will not be changed.

0 commit comments

Comments
 (0)