Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Kinnara/ModernWpf
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Oct 18, 2019
2 parents 55aea7c + c279695 commit c36d9e8
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
# ModernWpf
Modern styles and controls for your WPF applications
# Modern WPF UI Library
Modern styles and controls for your WPF applications.

## Quick start
1. Create a new WPF app.

2. Install from NuGet `Install-Package ModernWpfUI`.

3. Edit App.xaml to following:
```
<Application
...
xmlns:ui="http://schemas.modernwpf.com/2019">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemeResources />
<ui:XamlControlsResources />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
```

4. Edit MainWindow.xaml to following:
```
<Window
...
xmlns:ui="http://schemas.modernwpf.com/2019"
ui:WindowHelper.UseModernWindowStyle="True">
<Grid>
<StackPanel Margin="12">
<TextBlock
Text="My first ModernWPF app"
Style="{StaticResource HeaderTextBlockStyle}" />
<Button
Content="I am a button"
Margin="0,24,0,0" />
</StackPanel>
</Grid>
</Window>
```

5. Run the app.

0 comments on commit c36d9e8

Please sign in to comment.