-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Kinnara/ModernWpf
- Loading branch information
Showing
1 changed file
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |