Appendix C. System.Windows.Media Reference

System.Windows.Media

The System.Windows.Media namespace contains the types that give Silverlight rich capabilities for media, audio, video, vector drawing, and text. In this section, we'll list all of the classes and dig deeper into some of the core classes that you'll need to bring richness to your Silverlight applications.

System.Windows.Media Classes

The following sections list and describe the classes in the System.Windows.Media namespace.

ArcSegment

ArcSegment draws an elliptical arc between two points. The ArcSegment has five properties that you can use to define an elliptical arc.

  • IsLargeArc — A Boolean value that gets or sets whether the arc should be greater than 180 degrees. IsLargeArc is used in conjunction with SweepDirection to set one of four arcs that can be rendered. If IsLargeArc=True, then an arc with a 180 degree sweep or greater is rendered.

  • Point — The Point structure that gets or sets the endpoint of where the elliptical arc is drawn. The default Point is 0,0.

  • RotationAngle — A Double value that gets or sets the value in degrees by which the ellipse is rotated about the X-axis. The default RotationAngle is 0.

  • Size — A Size structure that gets or sets the Width (X-radius) and Height (Y-radius) of the arc as a Size structure. The default value is a Size with value 0,0.

  • SweepDirection — The value of CounterClockwise or Clockwise that gets or sets the value of how an arc is drawn.

Syntax

<Path Stroke="DarkOrange" StrokeThickness="4" ...

Get Silverlight™ 3 Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.