Created
October 25, 2019 11:58
-
-
Save ochilab/26cac33cd602db68268e7231e7f31636 to your computer and use it in GitHub Desktop.
MaterialDesignInXamlToolkitを適用するためのMainWindows.xamlの書き方
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
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考) http://nineworks2.blog.fc2.com/blog-entry-89.html