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

Custom drawn elements

Custom drawn elements can be created in WinRT by deriving them from the Windows::UI::Xaml::Path class, which is a kind of Shape. A Path is based on a Geometry—a mathematical abstraction of a 2D layout that can be a PathGeometry , which in itself can be built from various PathSegment objects. These shapes are beyond the scope of this book, but, again, they are similar to the ones existing in Silverlight, so a lot of information about them is available.

Note

WinRT currently does not support WPF's OnRender method that uses DrawingContext to do free-style drawing of various kinds. Hopefully, this will be supported in a future version.

Many new controls exist as part of the WinRT XAML toolkit, available for free on Microsoft's CodePlex ...

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