ฉันจะจัดเก็บและแสดงเส้นที่พื้นหลังของคอนเทนเนอร์กริดได้อย่างไร ฉันต้องตั้งค่าพื้นหลังตามพจนานุกรมทรัพยากร
<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>
or:
<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
เพื่อจัดแต่งทรงผม ฉันไม่สามารถใช้รูปภาพได้ เนื่องจากฉันต้องตั้งค่าสีที่รันไทม์/สำหรับแต่ละแอปพลิเคชัน