2017年6月8日2018年12月11日C#,開発 おはようございます。 今回は、C#@WPFでコンポーネントのスタイル等を外部ファイルに定義する方法を学びました。 元々、WEB系の方が経験が多いのですが、CSSっぽく出来るので分かりやすくて助かります。 早速、前回のサンプルアプリケーションを流用してやってみます。 <Window x:Class="WpfApp1.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://sc