C# wpf how to draw rectangle on polyline points
问题 I am trying to draw a polyline on a canvas which will have rectangle on each point. The Polyline is bound to a collection of points from the ViewModel. When I try to set DataTemplate for each point (like below) it shows no rectangle on polyline points. Is there some way to display rectangle on polyline points? Later I want to adjust the polyline by dragging these points. <Polyline Points="{Binding EdgePoints, Converter={StaticResource pointCollectionConverter}}" StrokeThickness="2"> <Polyline