It is really cool feature of WPF. Instead of typing lots of tags to describe visual elements in your GUI, you can just fill out the property Data of path element with special textual value. I like the way it is designed, because it gives somewhat old-school crypted form. The benefit is that it is short and very straightforward. Take a look!
Consider the following XAML code:
<PathFigure IsClosed=”true” StartPoint=”10,100″>
<LineSegment Point=”100,100″ />
<LineSegment Point=”100,50″ />
And now, take a look on condensed “mini language” form:
<Path Stroke=”Blue” Data=”M 10 100 L 100 100 L 100 50 Z” />
Pretty cool, ha?
These are the commands for the Geometry Mini-Language:
F value – Sets the Geometry.FillRule property. Use for EvenOdd, or 1 for NonZero. This command must appear at the beginning of the string (if you…
Ver la entrada original 277 palabras más