LocalNewsControl()
{
    var descriptor = DependencyPropertyDescriptor.FromProperty(ActualWidthProperty, typeof(TextBlock));
    if (descriptor != null)
        descriptor.AddValueChanged(myTextBlock, ActualWidth_ValueChanged);
}

private void ActualWidth_ValueChanged(object a_sender, EventArgs a_e)
{
   //Modify you scroll things here
   ...
}

相关文章:

  • 2021-08-15
  • 2022-12-23
  • 2021-08-08
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-11-15
猜你喜欢
  • 2021-10-01
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2022-02-05
  • 2022-01-07
相关资源
相似解决方案