グリッド コンテナの背景に線を保存して表示するにはどうすればよいですか? リソース ディクショナリごとに背景を設定する必要がありました。
<Style TargetType="{x:Type Grid}">
<Setter Property="Background">
<Setter.Value>
<!--here I had to display a vertical line at bottom,
which goes over the whole window -->
</Setter.Value>
</Setter>
</Style>
また:
<Style TargetType="{x:Type Window}">
<Setter Property="Background">
<Setter.Value>
<!-- here I had to display a vertical line at bottom,
which goes over the whole window and set the background color-->
</Setter.Value>
</Setter>
</Style>
問題は、アプリケーションの各ウィンドウに赤いフッターが必要なことです。ResourceDictionary
スタイリングに使っています。実行時/アプリケーションごとに色を設定する必要があるため、画像を使用できません。