O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Shapes

A Shape is a 2D vector-based drawing that can be placed anywhere that any other element can be placed. For example, Chapter 1, “What Is XAML?” shows how easy it is to embed a square in a Button by using Rectangle (which derives from Shape):

<Button>  <Rectangle Height="10" Width="10" Fill="White"/></Button>

Six classes derive from Shape:

Image Rectangle

Image Ellipse

Image Line

Polyline

Polygon

Path

Although Shape itself can’t ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required