{"id":430,"date":"2019-03-27T11:02:56","date_gmt":"2019-03-27T02:02:56","guid":{"rendered":"http:\/\/marius.main.jp\/software\/blog\/?p=430"},"modified":"2020-03-25T18:03:51","modified_gmt":"2020-03-25T09:03:51","slug":"post-430","status":"publish","type":"post","link":"https:\/\/todosoft.net\/blog\/?p=430","title":{"rendered":"Material Design In XAML Toolkit\u3068MahApps.Metro\u3092\u7528\u3044\u305f\u30de\u30c6\u30ea\u30a2\u30eb\u30c7\u30b6\u30a4\u30f3\u98a8Window"},"content":{"rendered":"\n<p><a rel=\"noreferrer noopener\" aria-label=\"Material Design In XAML Toolkit (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"http:\/\/materialdesigninxaml.net\/\" target=\"_blank\">Material Design In XAML Toolkit<\/a>\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u7c21\u5358\u306bWindow\u3092<a href=\"https:\/\/material.io\/design\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u30de\u30c6\u30ea\u30a2\u30eb\u30c7\u30b6\u30a4\u30f3 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\">\u30de\u30c6\u30ea\u30a2\u30eb\u30c7\u30b6\u30a4\u30f3<\/a>\u98a8\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br>\u3055\u3089\u306b<a rel=\"noreferrer noopener\" aria-label=\"MahApps.Metro (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/mahapps.com\/\" target=\"_blank\">MahApps.Metro<\/a>\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067\u3001\u7d30\u304b\u3044\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3084\u62e1\u5f35\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u5229\u7528\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u30fbNuGet\u304b\u3089MaterialDesignThemes\u3068MaterialDesignThemes.MahApps\u3092\u5c0e\u5165<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"http:\/\/marius.main.jp\/software\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes-1024x577.png\" alt=\"\" class=\"wp-image-432\" srcset=\"https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes-1024x577.png 1024w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes-300x169.png 300w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes-768x432.png 768w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes.png 1204w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>MaterialDesignThemes\u306e\u5c0e\u5165<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"567\" src=\"http:\/\/marius.main.jp\/software\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes.MahApps-1024x567.png\" alt=\"\" class=\"wp-image-433\" srcset=\"https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes.MahApps-1024x567.png 1024w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes.MahApps-300x166.png 300w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes.MahApps-768x425.png 768w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/MaterialDesignThemes.MahApps.png 1206w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>MaterialDesignThemes.MahApps\u306e\u5c0e\u5165<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"http:\/\/marius.main.jp\/software\/blog\/wp-content\/uploads\/2019\/03\/e0d1ea973c51939a1ebcc99508eb0208-1024x576.png\" alt=\"\" class=\"wp-image-434\" srcset=\"https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/e0d1ea973c51939a1ebcc99508eb0208-1024x576.png 1024w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/e0d1ea973c51939a1ebcc99508eb0208-300x169.png 300w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/e0d1ea973c51939a1ebcc99508eb0208-768x432.png 768w, https:\/\/todosoft.net\/blog\/wp-content\/uploads\/2019\/03\/e0d1ea973c51939a1ebcc99508eb0208.png 1204w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u5c0e\u5165\u5f8c<\/figcaption><\/figure>\n\n\n\n<p>\u30fbApp.xaml\u306e\u7de8\u96c6<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-csharp\"><code class=\"language-csharp\">&lt;Application x:Class=\"WpfApp6.App\"\n             xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\n             xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\n             xmlns:local=\"clr-namespace:WpfApp6\"\n             StartupUri=\"MainWindow.xaml\">\n    &lt;Application.Resources>\n        \n        &lt;ResourceDictionary>\n            &lt;ResourceDictionary.MergedDictionaries>\n                &lt;!--MahApps-->\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MahApps.Metro;component\/Styles\/Controls.xaml\"\/>\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MahApps.Metro;component\/Styles\/Fonts.xaml\"\/>\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MahApps.Metro;component\/Styles\/Colors.xaml\"\/>\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MahApps.Metro;component\/Styles\/Accents\/BaseLight.xaml\"\/>\n\n                &lt;!--Material Design-->\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MaterialDesignThemes.Wpf;component\/Themes\/MaterialDesignTheme.Light.xaml\" \/>\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MaterialDesignThemes.Wpf;component\/Themes\/MaterialDesignTheme.Defaults.xaml\" \/>\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MaterialDesignColors;component\/Themes\/Recommended\/Primary\/MaterialDesignColor.Indigo.xaml\" \/>\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MaterialDesignColors;component\/Themes\/Recommended\/Accent\/MaterialDesignColor.Indigo.xaml\" \/>\n\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MaterialDesignThemes.Wpf;component\/Themes\/MaterialDesignTheme.PopupBox.xaml\" \/>\n\n                &lt;!--Material Design: MahApps\u7d71\u5408\u8a2d\u5b9a -->\n                &lt;ResourceDictionary Source=\"pack:\/\/application:,,,\/MaterialDesignThemes.MahApps;component\/Themes\/MaterialDesignTheme.MahApps.Defaults.xaml\"\/>\n            &lt;\/ResourceDictionary.MergedDictionaries>\n\n            &lt;!-- MahApps Brushes -->\n            &lt;SolidColorBrush x:Key=\"HighlightBrush\" Color=\"{DynamicResource Primary700}\"\/>\n            &lt;SolidColorBrush x:Key=\"AccentColorBrush\" Color=\"{DynamicResource Primary500}\"\/>\n            &lt;SolidColorBrush x:Key=\"AccentColorBrush2\" Color=\"{DynamicResource Primary400}\"\/>\n            &lt;SolidColorBrush x:Key=\"AccentColorBrush3\" Color=\"{DynamicResource Primary300}\"\/>\n            &lt;SolidColorBrush x:Key=\"AccentColorBrush4\" Color=\"{DynamicResource Primary200}\"\/>\n            &lt;SolidColorBrush x:Key=\"WindowTitleColorBrush\" Color=\"{DynamicResource Primary700}\"\/>\n            &lt;SolidColorBrush x:Key=\"AccentSelectedColorBrush\" Color=\"{DynamicResource Primary500Foreground}\"\/>\n            &lt;LinearGradientBrush x:Key=\"ProgressBrush\" EndPoint=\"0.001,0.5\" StartPoint=\"1.002,0.5\">\n                &lt;GradientStop Color=\"{DynamicResource Primary700}\" Offset=\"0\"\/>\n                &lt;GradientStop Color=\"{DynamicResource Primary300}\" Offset=\"1\"\/>\n            &lt;\/LinearGradientBrush>\n            &lt;SolidColorBrush x:Key=\"CheckmarkFill\" Color=\"{DynamicResource Primary500}\"\/>\n            &lt;SolidColorBrush x:Key=\"RightArrowFill\" Color=\"{DynamicResource Primary500}\"\/>\n            &lt;SolidColorBrush x:Key=\"IdealForegroundColorBrush\" Color=\"{DynamicResource Primary500Foreground}\"\/>\n            &lt;SolidColorBrush x:Key=\"IdealForegroundDisabledBrush\" Color=\"{DynamicResource Primary500}\" Opacity=\"0.4\"\/>\n\n        &lt;\/ResourceDictionary>\n        \n    &lt;\/Application.Resources>\n&lt;\/Application>\n<\/code><\/pre>\n\n\n\n<p>\u30fbMainWindow.xaml\u306e\u7de8\u96c6<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-csharp\"><code class=\"language-csharp\">&lt;Controls:MetroWindow x:Class=\"WpfApp6.MainWindow\"\n        xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\n        xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\n        xmlns:d=\"http:\/\/schemas.microsoft.com\/expression\/blend\/2008\"\n        xmlns:mc=\"http:\/\/schemas.openxmlformats.org\/markup-compatibility\/2006\"\n        xmlns:local=\"clr-namespace:WpfApp6\"\n        xmlns:Controls=\"clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro\"\n        mc:Ignorable=\"d\"\n        Title=\"MainWindow\" Height=\"450\" Width=\"800\">\n    &lt;Grid>\n        \n    &lt;\/Grid>\n&lt;\/Controls:MetroWindow><\/code><\/pre>\n\n\n\n<p>\u30fbMainWindow.xaml.cs\u306e\u7de8\u96c6<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-csharp\"><code class=\"language-csharp\">    public partial class MainWindow : MahApps.Metro.Controls.MetroWindow\n    {\n        public MainWindow()\n        {\n            InitializeComponent();\n        }\n    }<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u3067Material Design In XAML Toolkit\u3068MahApps.Metro\u306e\u5c0e\u5165\u306f\u5b8c\u4e86\u3002<br>\u3055\u3089\u306a\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306f\u4e0b\u8a18\u3092\u53c2\u7167\u3002<br>\u30fb <a href=\"http:\/\/marius.main.jp\/software\/blog\/?p=440\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Material Design In XAML Toolkit\u3068MahApps.Metro\u306e\u30c6\u30fc\u30de\u8a2d\u5b9a (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\">Material Design In XAML Toolkit\u3068MahApps.Metro\u306e\u30c6\u30fc\u30de\u8a2d\u5b9a<\/a><br>\u30fb <a rel=\"noreferrer noopener\" aria-label=\"MahApps.Metro\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"http:\/\/marius.main.jp\/software\/blog\/?p=444\" target=\"_blank\">MahApps.Metro\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Material Design In XAML Toolkit\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u7c21\u5358\u306bWindow\u3092\u30de\u30c6\u30ea\u30a2\u30eb\u30c7\u30b6\u30a4\u30f3\u98a8\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u3055\u3089\u306bMahApps.Metro\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067\u3001\u7d30\u304b\u3044\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3084\u62e1\u5f35\u30b3\u30f3\u30c8\u30ed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20,15],"tags":[29,27,23],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-c","category-wpf","category-15","tag-mahapps","tag-material-design-in-xaml-toolkit","tag-wpf"],"_links":{"self":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=430"}],"version-history":[{"count":12,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions\/721"}],"wp:attachment":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}