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 withSweepDirection
to set one of four arcs that can be rendered. IfIsLargeArc=True
, then an arc with a 180 degree sweep or greater is rendered.Point
— ThePoint
structure that gets or sets the endpoint of where the elliptical arc is drawn. The default Point is 0,0.RotationAngle
— ADouble
value that gets or sets the value in degrees by which the ellipse is rotated about the X-axis. The defaultRotationAngle
is 0.Size
— ASize
structure that gets or sets theWidth
(X-radius) andHeight
(Y-radius) of the arc as aSize
structure. The default value is aSize
with value 0,0.SweepDirection
— The value ofCounterClockwise
orClockwise
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.