title: xamarin collectionview cell custom border
body: <p>How to add custom border to the collectionview cell like the <a href="https://i.stack.imgur.com/RBgO2.jpg" rel="nofollow noreferrer">image</a>?</p>
  <pre><code>   &lt;CollectionView HeightRequest=&quot;100&quot; ItemsSource=&quot;{Binding Test}&quot;&gt;
                              &lt;CollectionView.ItemsLayout &gt;
                                  &lt;GridItemsLayout  Orientation=&quot;Vertical&quot; Span=&quot;4&quot;/&gt;
                                  
                              &lt;/CollectionView.ItemsLayout&gt;
                              &lt;CollectionView.ItemTemplate&gt;
                                  &lt;DataTemplate&gt;
                                          &lt;Grid &gt;
                                              &lt;Image  Source=&quot;{Binding Image}&quot; &gt;&lt;/Image&gt;
                                          &lt;/Grid&gt;
                                  &lt;/DataTemplate&gt;
                              &lt;/CollectionView.ItemTemplate&gt;
                          &lt;/CollectionView&gt;
  </code></pre>