背景
一个版权时间显示,2013-xxxx ,这个xxxx要随着当前时间变化
解决
2024用另一个textblock来显示
xmlns:sys="clr-namespace:System;assembly=mscorlib"
<TextBlock Grid.Row="2"
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="12"
>
Copyright © 2013-<TextBlock Text="{Binding Source={x:Static sys:DateTime.Today}, StringFormat='yyyy'}"/> xxx. All rights reserved. <!--Hyperlink >服务协议</Hyperlink-->
</TextBlock>