c# - Partial scaling of a composed elements in WPF -


I am in the following situation: Designing an interactive flow-chart GUI I animate the scale below the flow-chart animation Was stuck with. Elements that compose the flow-chart are reduced, but they remain active.

I have something like this:

  & lt; Canvas canvas.lift = "55" canvas .Top = "720" height = "100" width = "500" tag = "stepdown" & gt; & Lt; Line stroke = "# 99ccff" strokectaction = "8" x1 = "0" x2 = "720" Y1 = "10" Y2 = "10" & gt; & Lt; Polygon Stroke = "Black" StrokeThickness = "2" Points = "0,30 40,0 40,60" canvas Lift = "- 20" canvas. Tap = "-20" Fill = "# 99ccf" & gt; & Lt; / Polygon & gt; & Lt; Polygon stroke = "black" strokectniness = "2" points = "0,0 0,60 40,30" canvas Lift = "720" canvas. Tap = "-20" Fill = "# 99ccf" & gt; ; / Polygon & gt; & Lt; Image canvas. Late = "- 50" canvas Tap = "- 70" height = "53" name = "image32" source = "img / outlet.png" section = "fill" width = "30" tag = "relative" /> & Lt; / Canvas & gt;   

And I would like to move the whole canvas and its elements to the left - there is no problem with translation transforms . In addition, I do not want to reduce the problem with line only with scale transform .

But at the same time (!), I want to stick the polygon to end two lines of line when the line is scaled, then polygon , at least one, floats.

I do not know how to adopt these elements or to define them on a relative basis. It works fine with scale on the entire canvas , but it also changes polygon and images .

You have to define qualities for me, as attachment attributes even such behavior Define who track these points according to polling placements. Then you can tie these properties to the start / end points of the line. In this way the line should be dominated by polygons. But I did not try it, it's just a design idea.

Comments