Skip to main content
A newer version of this page is available. .

How to: Wrap long texts of the DXNavBar items by creating an ItemTemplate

This example demonstrates how to wrap an item’s text onto several lines, if this text is too long. To accomplish this, a template of the NavBarViewBase.ItemTemplate type is created at the view level. This template contains a standard TextBlock control whose TextBlock.TextWrapping property is set to Wrap.

View Example

<Application x:Class="LongNavBarItemText.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Window1.xaml">
    <Application.Resources>

    </Application.Resources>
</Application>