Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <Window x:Class="StatTrackerWPF.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:StatTrackerWPF"
  7. mc:Ignorable="d"
  8. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  9. TextElement.Foreground="{DynamicResource MaterialDesignBody}"
  10. TextElement.FontWeight="Regular"
  11. TextElement.FontSize="13"
  12. TextOptions.TextFormattingMode="Ideal"
  13. TextOptions.TextRenderingMode="Auto"
  14. Background="{DynamicResource MaterialDesignPaper}"
  15. FontFamily="{DynamicResource MaterialDesignFont}"
  16. Title="MainWindow" Height="450" Width="800">
  17.  
  18. <Window.Resources>
  19. <ResourceDictionary>
  20. <ResourceDictionary.MergedDictionaries>
  21. <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
  22. <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
  23. <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" />
  24. <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
  25. </ResourceDictionary.MergedDictionaries>
  26. </ResourceDictionary>
  27. </Window.Resources>
  28.  
  29.  
  30. <Grid>
  31. <materialDesign:Card Padding="32" Margin="16">
  32. <TextBlock Style="{DynamicResource MaterialDesignTitleTextBlock}">My First Material Design App</TextBlock>
  33. </materialDesign:Card>
  34.  
  35. </Grid>
  36. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement