我想创建一个弯曲的文本块。它有点类似于这个:
http: //i.stack.imgur.com/sCJuQ.gif
我怎样才能在表达式混合中做到这一点?即使我尝试在路径列表框布局上设置文本块,它也以垂直方式打印,而不是在路径布局上打印。
<FrameworkElement.Resources>
<TextBlock x:Key="TextRes" Text="world wide web"/>
</FrameworkElement.Resources>
<mec:PathListBox ItemsSource="{Binding Text, Source={StaticResource TextRes}}">
<mec:PathListBox.LayoutPaths>
<mec:LayoutPath Orientation="OrientToPath">
<mec:LayoutPath.SourceElement>
<Ellipse Height="436" Width="352" />
</mec:LayoutPath.SourceElement>
</mec:LayoutPath>
</mec:PathListBox.LayoutPaths>
</mec:PathListBox>