O'Reilly logo

Mastering Windows 8 C++ App Development by Pavel Yosifovich

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

Working with elements and controls

The difference between "elements" and "controls" is not that important in practice, but it is useful to understand the distinction.

Elements derive from FrameworkElement (directly or indirectly), but not from Control. They have some look and provide some functionality that is customizable mostly by changing properties. For example, Ellipse is an element. There's no way to change the fundamental appearance of an Ellipse (and it would be illogical to be able to turn an Ellipse into, for example, a rectangle). It can still be customized in some ways using properties such as Stroke, StrokeThickness, Fill, and Stretch.

Controls, on the other hand, derive (directly or indirectly) from the Control class. Control adds ...

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