资 源 简 介
Visual C# WPF技术实现文字内容从左向右流动、从右向左流动,其实就是文字滚动,稍加了一些特殊处理,下面来看看代码真的好简单:
private void button1_Click(object sender, RoutedEventArgs e)
{//内容从左向右流动
this.MyFlowDocument.FlowDirection = FlowDirection.LeftToRight;
}
private void button2_Click(object sender, RoutedEventArgs e)
{//内容从右向左流动
this.MyFlowDocument.FlowDirection = FlowDirection.RightToLeft;
}