title: Reusable DataTemplate. How to specify? Need syntax assistance
body: <p>This is my control with my custom DataTemplateSelector:</p>
  
  <pre><code>&lt;m:Map x:Name="MainMap"&gt;
              &lt;m:MapItemsControl 
                  ItemsSource="{Binding Source={StaticResource WorkLayerData}}"&gt;
                  &lt;m:MapItemsControl.ItemTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;Mobile:DevicePushpinTemplateSelector 
                              m:MapLayer.Position="{Binding Location}" 
                              ZoomLevel="{Binding ZoomLevel, ElementName=MainMap}" 
                              Content="{Binding}"&gt;
                              &lt;Mobile:DevicePushpinTemplateSelector.DotTemplate&gt;
                                  &lt;DataTemplate&gt;
                                      &lt;Ellipse Width="8" Height="8" Stroke="Black" Fill="{Binding IsGPSDataRecent, Converter={StaticResource BoolToGreenRedBrushConverter}}" StrokeThickness="1" /&gt; 
                                  &lt;/DataTemplate&gt;
                              &lt;/Mobile:DevicePushpinTemplateSelector.DotTemplate&gt;
                              &lt;Mobile:DevicePushpinTemplateSelector.NumberedTemplate&gt;
                                  &lt;DataTemplate&gt;
                                      &lt;Border x:Name="border" Background="{Binding IsGPSDataRecent, Converter={StaticResource BoolToGreenRedBrushConverter}}" BorderBrush="Black" BorderThickness="2" Padding="2" Height="20" CornerRadius="8"&gt;
                                          &lt;TextBlock  VerticalAlignment="Center" Text="{Binding DisplayId}" /&gt;
                                      &lt;/Border&gt;                                  
                                  &lt;/DataTemplate&gt;
                              &lt;/Mobile:DevicePushpinTemplateSelector.NumberedTemplate&gt;
                              &lt;Mobile:DevicePushpinTemplateSelector.DetailedTemplate&gt;
                                  &lt;DataTemplate&gt;  
  
                                      &lt;Border Background="{Binding IsGPSDataRecent, Converter={StaticResource BoolToGreenRedBrushConverter}}" BorderBrush="Black" BorderThickness="1" Padding="2" CornerRadius="2"&gt;
                                          &lt;Grid&gt;
                                              &lt;Grid.RowDefinitions&gt;
                                                  &lt;RowDefinition Height="Auto" /&gt;
                                                  &lt;RowDefinition Height="Auto" /&gt;
                                                  &lt;RowDefinition Height="Auto" /&gt;
                                                  &lt;RowDefinition Height="Auto" /&gt;
                                                  &lt;RowDefinition Height="Auto" /&gt;
                                              &lt;/Grid.RowDefinitions&gt;
                                              &lt;Grid.ColumnDefinitions&gt;
                                                  &lt;ColumnDefinition Width="Auto" /&gt;
                                                  &lt;ColumnDefinition Width="Auto" /&gt;
                                              &lt;/Grid.ColumnDefinitions&gt;
                                              &lt;TextBlock  Text="Id:" FontWeight="Bold" /&gt;
                                              &lt;TextBlock  Text="{Binding DisplayId}" Grid.Column="1" /&gt;
                                              &lt;TextBlock  Text="Device Id:" FontWeight="Bold" Grid.Row="1" /&gt;
                                              &lt;TextBlock  Text="{Binding DeviceId}" Grid.Row="1" Grid.Column="1" /&gt;
                                              &lt;TextBlock  Text="Speed:" FontWeight="Bold" Grid.Row="2" /&gt;
                                              &lt;TextBlock  Text="{Binding Speed}" Grid.Row="2" Grid.Column="1" /&gt;
                                              &lt;TextBlock  Text="Location:" FontWeight="Bold" Grid.Row="3" /&gt;
                                              &lt;TextBlock  Text="{Binding Location}" Grid.Row="3" Grid.Column="1" /&gt;
                                              &lt;Button Content="View Details" Grid.Row="4" Grid.ColumnSpan="2" /&gt;
                                          &lt;/Grid&gt;                                        
                                      &lt;/Border&gt;
                                  &lt;/DataTemplate&gt;
                              &lt;/Mobile:DevicePushpinTemplateSelector.DetailedTemplate&gt;
                          &lt;/Mobile:DevicePushpinTemplateSelector&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/m:MapItemsControl.ItemTemplate&gt;
              &lt;/m:MapItemsControl&gt;
          &lt;/m:Map&gt;
  </code></pre>
  
  <p>I want to move my <code>Mobile:DevicePushpinTemplateSelector.DetailedTemplate</code> into resources so I can reuse it somewhere else.</p>
  
  <p>I declared resource:</p>
  
  <pre><code>&lt;UserControl.Resources&gt;
          &lt;DataTemplate x:Key="DetailedMapItemTemplate"&gt;
              &lt;Border Background="{Binding IsGPSDataRecent, Converter={StaticResource BoolToGreenRedBrushConverter}}" BorderBrush="Black" BorderThickness="1" Padding="2" CornerRadius="2"&gt;
                  &lt;Grid&gt;
                      &lt;Grid.RowDefinitions&gt;
                          &lt;RowDefinition Height="Auto" /&gt;
                          &lt;RowDefinition Height="Auto" /&gt;
                          &lt;RowDefinition Height="Auto" /&gt;
                          &lt;RowDefinition Height="Auto" /&gt;
                          &lt;RowDefinition Height="Auto" /&gt;
                      &lt;/Grid.RowDefinitions&gt;
                      &lt;Grid.ColumnDefinitions&gt;
                          &lt;ColumnDefinition Width="Auto" /&gt;
                          &lt;ColumnDefinition Width="Auto" /&gt;
                      &lt;/Grid.ColumnDefinitions&gt;
                      &lt;TextBlock  Text="Id:" FontWeight="Bold" /&gt;
                      &lt;TextBlock  Text="{Binding DisplayId}" Grid.Column="1" /&gt;
                      &lt;TextBlock  Text="Device Id:" FontWeight="Bold" Grid.Row="1" /&gt;
                      &lt;TextBlock  Text="{Binding DeviceId}" Grid.Row="1" Grid.Column="1" /&gt;
                      &lt;TextBlock  Text="Speed:" FontWeight="Bold" Grid.Row="2" /&gt;
                      &lt;TextBlock  Text="{Binding Speed}" Grid.Row="2" Grid.Column="1" /&gt;
                      &lt;TextBlock  Text="Location:" FontWeight="Bold" Grid.Row="3" /&gt;
                      &lt;TextBlock  Text="{Binding Location}" Grid.Row="3" Grid.Column="1" /&gt;
                      &lt;Button Content="View Details" Grid.Row="4" Grid.ColumnSpan="2" /&gt;
                  &lt;/Grid&gt;
              &lt;/Border&gt;
          &lt;/DataTemplate&gt;
      &lt;/UserControl.Resources&gt;
  </code></pre>
  
  <p>My problem is that I don't know HOW to use this DataTemplate inside my selector. What is the XAML I need to use? With controls like ListBox it is easy, just set <code>ItemTemplate="{StaticResource thisTemplate}"</code> but how do I do this in my case? Still learning XAML</p>