谢谢@Sinatr!通过在
Background
Border
<Border Height="40" VerticalAlignment="Top" Background="{StaticResource ColorPrimary500}" x:Name="TitleBar" Panel.ZIndex="1">