Skip to content

Commit 739a556

Browse files
authored
Update README.md
Update sample to use `ui:FluentWindow`. `ui:UiWindow` does not exist in version 3.*
1 parent 4c4e6a9 commit 739a556

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,17 @@ public partial class MainWindow
127127
Now you can create fantastic apps, e.g. with one button:
128128

129129
```xml
130-
<ui:UiWindow
130+
<ui:FluentWindow
131131
...
132132
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml">
133-
<Grid>
134-
<ui:Button
135-
Content="Hello World"
136-
Icon="Fluent24"/>
137-
</Grid>
138-
</ui:UiWindow>
133+
<StackPanel>
134+
<ui:TitleBar Title="WPF UI"/>
135+
<ui:Card Margin="8">
136+
<ui:Button Content="Hello World"
137+
Icon="{ui:SymbolIcon Fluent24}" />
138+
</ui:Card>
139+
</StackPanel>
140+
</ui:FluentWindow>
139141
```
140142

141143
## Special thanks

0 commit comments

Comments
 (0)