I'm using a GeometryDrawing to draw a triangle in WPF. I currently am able to bind it to my ViewModel's "Angle" property that is attached to a slider that the user can move and thus move the rectangle around an object. The problem is that I want to make the rectangle to be also able to be wider or narrower according to a specific angle that I calculate that is based on a zoom value. I'm currently unable to make the rectangle change since I don't know how to do this on a GeometryDrawing object. Perhaps another object should be used?
The GeometryDrawing object code is this:
<GeometryDrawing Geometry="M100,100 L186.6,280 A100,100,0,0,1,13.4,280 L100,100">
<GeometryDrawing.Brush>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1" Opacity="0.25">
<GradientStopCollection>
<GradientStop Color="Black" Offset="0" />
<GradientStop Color="Transparent" Offset="0.9"/>
</GradientStopCollection>
</LinearGradientBrush>
</GeometryDrawing.Brush>
</GeometryDrawing>
The UI for the application is this (only a test project, I've made it to test the control before I implement it in my real project)

Thanks for all your help folks!
John.
You could replace the current Geometry drawing string with two LineSegments and an ArcSegment.
Besides, an Arc is more natural for a field of vision than a triangle especially when the angle is large (near 180 degrees).
EDIT
This is harder than it looks because you'll need to calculate the end point of the arc. I seen no other solution than to calculate the endpoint in code.