Skip to content

Instantly share code, notes, and snippets.

@ochilab
Created October 25, 2019 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ochilab/26cac33cd602db68268e7231e7f31636 to your computer and use it in GitHub Desktop.
Save ochilab/26cac33cd602db68268e7231e7f31636 to your computer and use it in GitHub Desktop.
MaterialDesignInXamlToolkitを適用するためのMainWindows.xamlの書き方
<Window x:Class="TestMaterial.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TestMaterial"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
>
<Grid>
<DataGrid HorizontalAlignment="Left" Height="100" Margin="79,151,0,0" VerticalAlignment="Top" Width="511"/>
</Grid>
</Window>
@ochilab
Copy link
Author

ochilab commented Oct 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment