Tile Brushes
The two remaining brushes are tile brushes, because they both derive from a TileBrush
base class. However, this is one of those cases where the naming doesn’t make much sense because of compatibility with WPF and Silverlight. In WPF, you can specify the brush’s content as infinitely repeating tiles and configure the tiling pattern in a number of different ways. In the XAML UI Framework for universal apps, none of these options exist. Instead, the way to think about a tile brush is a brush that contains bitmap-based content. That content can never repeat (it can only stretch), so there’s only ever one “tile.”
That said, the two built-in tile brushes are useful even without true tiling abilities. The two types of tile brushes are ...
Get Universal Windows® Apps with XAML and C# Unleashed 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.