标签:layout com false unit white hit 图片 mamicode you
<ec:PathListBox x:Name="numberPathListBox" IsHitTestVisible="False"> <ec:PathListBox.ItemTemplate> <DataTemplate> <TextBlock Foreground="White" Text="{Binding}" FontSize="15"> </TextBlock> </DataTemplate> </ec:PathListBox.ItemTemplate> <ec:PathListBox.LayoutPaths> <ec:LayoutPath Distribution="Even" Orientation="OrientToPath" SourceElement="{Binding ElementName=NumberPath}" /> </ec:PathListBox.LayoutPaths> </ec:PathListBox> <ed:Arc x:Name="NumberPath" Margin="18" ArcThickness="0" ArcThicknessUnit="Pixel" StartAngle="0" EndAngle="350" Stretch="None" />
效果图:
源码下载:
https://files.cnblogs.com/files/chlm/%E5%9C%86%E5%BD%A2%E7%9B%98.rar
WPF 使用 Expression.Controls和Expression.Drawing绘制圆形刻度盘
标签:layout com false unit white hit 图片 mamicode you
原文地址:https://www.cnblogs.com/chlm/p/12725975.html