Click here to Skip to main content
15,905,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to draw a line shape with diamond or triangle (shaded or shallow) end point.

How can I achieve this please help me.

Thank you.
Posted

1 solution

Hey Deskul,

Triangle example XAML:

XML
<!-- This polygon shape uses pre-defined color values for its Stroke and
     Fill properties. 
     The SolidColorBrush's Opacity property affects the fill color in 
     this case by making it slightly transparent (opacity of 0.4) so 
     that it blends with any underlying color. -->

<polygon
    Points="300,200 400,125 400,275 300,200"
    Stroke="Purple" 
    StrokeThickness="2">
    <polygon.fill>
       <solidcolorbrush color="Blue" opacity="0.4" />
    </polygon.fill>
</polygon>


Cheers,
Edo
 
Share this answer
 
v3
Comments
Daskul 27-Jan-13 5:59am    
NO i dont want to create polygon shape.
I want to create a line with a custom shape at its end like this:

----------------> for triangle or ------------------<> for diamond like in the UML diagram aggregation and composition
Joezer BH 27-Jan-13 7:19am    
You can use a combination of a line & the polygon

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900