Create a Breadcrumb Trail

This code displays the list of windows, otherwise known as a "breadcrumb trail".

<div gwc:condition="application/ui">
  <span gwc:repeat="w application/ui/windows">
  <span gwc:condition="w/form"
   gwc:content="' :: ' + ( w/form/text || w/text || w/form/name )"/>
  <span gwc:condition="!w/form" gwc:content="' :: ' + w/name"/> 
  </span>
</div>

You add this code to your template file (the main.xhtml file within the snippet set). Where you place this code in your file determines where the breadcrumb trail appears within the application interface.

GWC for Silverlight mode: Creating a Breadcrumb Trail

If you want to create the same breadcrumb trail in GWC for Silverlight mode, add the following code to your main.xaml template file:

<StackPanel Grid.Row="1" Orientation="Horizontal">
 <TextBlock gwc:repeat="w application/ui/windows"
  Text=":: {w/form ? ( w/form/text || w/text || w/form/name ) : w/name  } "/>
</StackPanel>

You will have to add a RowDefinition:

<Grid.RowDefinitions>
  <RowDefinition Height="Auto"/>
  <RowDefinition Height="Auto"/>
  <RowDefinition Height="*" />
</Grid.RowDefinitions>

Make sure that no other Grid.Row="1" is defined. Next Grid should be:

<Grid Grid.Row="2">