Edit this page

Containers' Size is Increased

With Q1 2013 we have introduced dynamic FontStyle, FontSize and Brushes for Windows8 and Windows8Touch Themes.

For example with the Windows8Theme and Windows8TouchTheme applied, the size of the GridView's containers (for example GridViewCell, GridViewHeaderCell, GridViewFooterCell etc.) will be adjusted based on the size of the content to be shown in them. If you set a CellTemplate for the column, having larger content occupying the entire cell, then the container showing it will be larger as well.

You can compare:

The appearance before:

gridview dynamic fonts 1

The appearance now:

gridview dynamic fonts 2

In order to have a different (smaller) Size for the containers, you can define a Style targeting the element you are interested in. Then set its Height property with the desired value. In the example with the CellTemplate, you could define a simple Style targeting the GridViewRow element and set a fixed Height.

You can check this help article and this
blog post on explaining details about the new dynamic FontSizes.

More information on GridView's Styling could be found here. If you use the Implicit Themes, then this article might be helpful as well.

See Also