这是基于上一个问题的的后续。我已经设法想出了一个DependencyProperty,它将使用计时器进行更新,以始终具有最新的日期时间,以及一个显示日期时间的文本块。因为它是一个DependencyProperty,所以每当计时器更新该值时,文本块也将显示最新的DateTime。 public class TestDependency : DependencyObject public static readonly DependencyProperty TestDateTimeProperty =
DependencyP