title: How to remove the space between context menu items in UWP
body: <p>I have items in context menu, there is more space between the items. i tried in so many ways like creating item container, reducing margin to 0 and padding to zero. Nothing works.May Any one help me to sort out the problem.</p>
  
  <pre><code>  &lt;Style TargetType="local:ContextMenu"&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="local:ContextMenu"&gt;                    
                  &lt;Border BorderThickness="1" BorderBrush="LightGray"&gt;
                      &lt;ListView x:Name="PART_ContextMenuListView" BorderThickness="0"
                                ItemContainerStyle="{StaticResource ListViewItemStyle1}"                           
                                Background="White" &gt;                           
                      &lt;/ListView&gt;
                  &lt;/Border&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  
  &lt;Style x:Key="ListViewItemStyle1" TargetType="ListViewItem"&gt;
      &lt;Setter Property="FontFamily" Value="{StaticResource ContentControlThemeFontFamily}"/&gt;
      &lt;Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}"/&gt;
      &lt;Setter Property="Margin" Value="0"/&gt;
      &lt;Setter Property="Background" Value="Transparent"/&gt;
      &lt;Setter Property="Height" Value="30"/&gt;
      &lt;Setter Property="TabNavigation" Value="Local"/&gt;
      &lt;Setter Property="IsHoldingEnabled" Value="True"/&gt;        
      &lt;Setter Property="HorizontalContentAlignment" Value="Stretch"/&gt;
      &lt;Setter Property="VerticalContentAlignment" Value="Stretch"/&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="ListViewItem"&gt;
                  &lt;Border x:Name="OuterContainer"&gt;
                      &lt;VisualStateManager.VisualStateGroups&gt;
                          &lt;VisualStateGroup x:Name="CommonStates"&gt;
                              &lt;VisualState x:Name="Normal"/&gt;
                              &lt;VisualState x:Name="PointerOver"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionBackground"/&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBorder"/&gt;--&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="SelectionBackground"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListViewItemSelectedPointerOverBackgroundThemeBrush}"/&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="SelectedBorder"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListViewItemSelectedPointerOverBorderThemeBrush}"/&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;                                        
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="Pressed"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;PointerDownThemeAnimation TargetName="ContentContainer"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;                                
                              &lt;VisualState x:Name="Disabled"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Duration="0" To="{StaticResource ListViewItemDisabledThemeOpacity}" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                          &lt;/VisualStateGroup&gt;
                          &lt;VisualStateGroup x:Name="FocusStates"&gt;
                              &lt;VisualState x:Name="Focused"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual"/&gt;--&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="Unfocused"/&gt;
                              &lt;VisualState x:Name="PointerFocused"/&gt;
                          &lt;/VisualStateGroup&gt;
                          &lt;VisualStateGroup x:Name="SelectionHintStates"&gt;
                              &lt;VisualStateGroup.Transitions&gt;
                                  &lt;VisualTransition GeneratedDuration="0:0:0.65" To="NoSelectionHint"/&gt;
                              &lt;/VisualStateGroup.Transitions&gt;
                              &lt;VisualState x:Name="VerticalSelectionHint"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;SwipeHintThemeAnimation ToHorizontalOffset="0" TargetName="SelectionBackground" ToVerticalOffset="15"/&gt;
                                      &lt;SwipeHintThemeAnimation ToHorizontalOffset="0" TargetName="ContentBorder" ToVerticalOffset="15"/&gt;
                                      &lt;SwipeHintThemeAnimation ToHorizontalOffset="0" TargetName="SelectedBorder" ToVerticalOffset="15"/&gt;
                                      &lt;!--&lt;SwipeHintThemeAnimation ToHorizontalOffset="0" TargetName="SelectedCheckMark" ToVerticalOffset="15"/&gt;--&gt;
                                      &lt;!--&lt;DoubleAnimationUsingKeyFrames Duration="0:0:0.500" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HintGlyph"&gt;
                                          &lt;DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.5"/&gt;
                                          &lt;DiscreteDoubleKeyFrame KeyTime="0:0:0.500" Value="0"/&gt;
                                      &lt;/DoubleAnimationUsingKeyFrames&gt;--&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="HorizontalSelectionHint"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;SwipeHintThemeAnimation ToHorizontalOffset="-23" TargetName="SelectionBackground" ToVerticalOffset="0"/&gt;
                                      &lt;SwipeHintThemeAnimation ToHorizontalOffset="-23" TargetName="ContentBorder" ToVerticalOffset="0"/&gt;
                                      &lt;SwipeHintThemeAnimation ToHorizontalOffset="-23" TargetName="SelectedBorder" ToVerticalOffset="0"/&gt;
                                      &lt;!--&lt;SwipeHintThemeAnimation ToHorizontalOffset="-23" TargetName="SelectedCheckMark" ToVerticalOffset="0"/&gt;--&gt;
                                      &lt;DoubleAnimationUsingKeyFrames Duration="0:0:0.500" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HintGlyph"&gt;
                                          &lt;DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.5"/&gt;
                                          &lt;DiscreteDoubleKeyFrame KeyTime="0:0:0.500" Value="0"/&gt;
                                      &lt;/DoubleAnimationUsingKeyFrames&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="NoSelectionHint"/&gt;
                          &lt;/VisualStateGroup&gt;
                          &lt;VisualStateGroup x:Name="SelectionStates"&gt;
                              &lt;VisualState x:Name="Unselecting"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HintGlyphBorder"/&gt;--&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="Unselected"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HintGlyphBorder"/&gt;--&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="UnselectedPointerOver"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HintGlyphBorder"/&gt;--&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentPresenter"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListViewItemSelectedForegroundThemeBrush}"/&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="UnselectedSwiping"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectingGlyph"/&gt;--&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HintGlyphBorder"/&gt;--&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="Selecting"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionBackground"/&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBorder"/&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectingGlyph"/&gt;--&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="HintGlyphBorder"/&gt;--&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentPresenter"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListViewItemSelectedForegroundThemeBrush}"/&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="Selected"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionBackground"/&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBorder"/&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedCheckMark"/&gt;--&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentPresenter"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListViewItemSelectedForegroundThemeBrush}"/&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="SelectedSwiping"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionBackground"/&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBorder"/&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedCheckMark"/&gt;--&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentPresenter"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListViewItemSelectedForegroundThemeBrush}"/&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="SelectedUnfocused"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectionBackground"/&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBorder"/&gt;
                                      &lt;!--&lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedCheckMark"/&gt;--&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="contentPresenter"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListViewItemSelectedForegroundThemeBrush}"/&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                          &lt;/VisualStateGroup&gt;
                          &lt;VisualStateGroup x:Name="DragStates"&gt;
                              &lt;VisualStateGroup.Transitions&gt;
                                  &lt;VisualTransition GeneratedDuration="0:0:0.2" To="NotDragging"/&gt;
                              &lt;/VisualStateGroup.Transitions&gt;
                              &lt;VisualState x:Name="NotDragging"/&gt;
                              &lt;VisualState x:Name="Dragging"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Duration="0" To="{StaticResource ListViewItemDragThemeOpacity}" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InnerDragContent"/&gt;
                                      &lt;DragItemThemeAnimation TargetName="InnerDragContent"/&gt;
                                      &lt;!--&lt;FadeOutThemeAnimation TargetName="SelectedCheckMarkOuter"/&gt;--&gt;
                                      &lt;FadeOutThemeAnimation TargetName="SelectedBorder"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="DraggingTarget"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DropTargetItemThemeAnimation TargetName="OuterContainer"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="MultipleDraggingPrimary"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MultiArrangeOverlayBackground"/&gt;
                                      &lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MultiArrangeOverlayText"/&gt;
                                      &lt;DoubleAnimation Duration="0" To="{StaticResource ListViewItemDragThemeOpacity}" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ContentBorder"/&gt;
                                      &lt;FadeInThemeAnimation TargetName="MultiArrangeOverlayBackground"/&gt;
                                      &lt;FadeInThemeAnimation TargetName="MultiArrangeOverlayText"/&gt;
                                      &lt;DragItemThemeAnimation TargetName="ContentBorder"/&gt;
                                      &lt;FadeOutThemeAnimation TargetName="SelectionBackground"/&gt;
                                      &lt;!--&lt;FadeOutThemeAnimation TargetName="SelectedCheckMarkOuter"/&gt;--&gt;
                                      &lt;FadeOutThemeAnimation TargetName="SelectedBorder"/&gt;
                                      &lt;FadeOutThemeAnimation TargetName="PointerOverBorder"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="MultipleDraggingSecondary"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;FadeOutThemeAnimation TargetName="ContentContainer"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                          &lt;/VisualStateGroup&gt;
                          &lt;VisualStateGroup x:Name="ReorderHintStates"&gt;
                              &lt;VisualStateGroup.Transitions&gt;
                                  &lt;VisualTransition GeneratedDuration="0:0:0.2" To="NoReorderHint"/&gt;
                              &lt;/VisualStateGroup.Transitions&gt;
                              &lt;VisualState x:Name="NoReorderHint"/&gt;
                              &lt;VisualState x:Name="BottomReorderHint"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DragOverThemeAnimation Direction="Bottom" ToOffset="{StaticResource ListViewItemReorderHintThemeOffset}" TargetName="ReorderHintContent"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="TopReorderHint"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DragOverThemeAnimation Direction="Top" ToOffset="{StaticResource ListViewItemReorderHintThemeOffset}" TargetName="ReorderHintContent"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="RightReorderHint"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DragOverThemeAnimation Direction="Right" ToOffset="{StaticResource ListViewItemReorderHintThemeOffset}" TargetName="ReorderHintContent"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                              &lt;VisualState x:Name="LeftReorderHint"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DragOverThemeAnimation Direction="Left" ToOffset="{StaticResource ListViewItemReorderHintThemeOffset}" TargetName="ReorderHintContent"/&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                          &lt;/VisualStateGroup&gt;
                          &lt;VisualStateGroup x:Name="DataVirtualizationStates"&gt;
                              &lt;VisualState x:Name="DataAvailable"/&gt;
                              &lt;VisualState x:Name="DataPlaceholder"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PlaceholderTextBlock"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0"&gt;
                                              &lt;DiscreteObjectKeyFrame.Value&gt;
                                                  &lt;Visibility&gt;Visible&lt;/Visibility&gt;
                                              &lt;/DiscreteObjectKeyFrame.Value&gt;
                                          &lt;/DiscreteObjectKeyFrame&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                      &lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="PlaceholderRect"&gt;
                                          &lt;DiscreteObjectKeyFrame KeyTime="0"&gt;
                                              &lt;DiscreteObjectKeyFrame.Value&gt;
                                                  &lt;Visibility&gt;Visible&lt;/Visibility&gt;
                                              &lt;/DiscreteObjectKeyFrame.Value&gt;
                                          &lt;/DiscreteObjectKeyFrame&gt;
                                      &lt;/ObjectAnimationUsingKeyFrames&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/VisualState&gt;
                          &lt;/VisualStateGroup&gt;
                      &lt;/VisualStateManager.VisualStateGroups&gt;
                      &lt;Grid x:Name="ReorderHintContent" Background="Transparent" Margin="0"&gt;
                          &lt;Path x:Name="SelectingGlyph" Data="F1 M133.1,17.9 L137.2,13.2 L144.6,19.6 L156.4,5.8 L161.2,9.9 L145.6,28.4 z" Fill="{StaticResource ListViewItemCheckSelectingThemeBrush}" FlowDirection="LeftToRight" HorizontalAlignment="Right" Height="13" Margin="0,9.5,9.5,0" Opacity="0" Stretch="Fill" VerticalAlignment="Top" Width="15"/&gt;
                          &lt;Border x:Name="HintGlyphBorder" HorizontalAlignment="Right" Height="0" Margin="0" Opacity="0" VerticalAlignment="Top" Width="40"&gt;
                              &lt;Path x:Name="HintGlyph" Data="F1 M133.1,17.9 L137.2,13.2 L144.6,19.6 L156.4,5.8 L161.2,9.9 L145.6,28.4 z" Fill="{StaticResource ListViewItemCheckHintThemeBrush}" FlowDirection="LeftToRight" HorizontalAlignment="Right" Height="13" Margin="0,5.5,5.5,0" Opacity="0" Stretch="Fill" VerticalAlignment="Top" Width="15"/&gt;
                          &lt;/Border&gt;
                          &lt;Border x:Name="ContentContainer" BorderThickness="0" Margin="0" Padding="0"&gt;
                              &lt;Grid x:Name="InnerDragContent" Margin="0"&gt;
                                  &lt;!--&lt;Rectangle x:Name="PointerOverBorder" Fill="{StaticResource ListViewItemPointerOverBackgroundThemeBrush}" IsHitTestVisible="False" Margin="-5" Opacity="0"/&gt;
                                  &lt;Rectangle x:Name="FocusVisual" IsHitTestVisible="False" Opacity="0" Stroke="{StaticResource ListViewItemFocusBorderThemeBrush}" Margin="-5" StrokeThickness="2"/&gt;--&gt;
                                  &lt;Rectangle x:Name="SelectionBackground" Fill="{StaticResource ListViewItemSelectedBackgroundThemeBrush}" Margin="0" Opacity="0"/&gt;
                                  &lt;Border x:Name="ContentBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Background="Beige" Margin="-5"&gt;
                                      &lt;Grid&gt;
                                          &lt;ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTransitions="{TemplateBinding ContentTransitions}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/&gt;
                                          &lt;TextBlock x:Name="PlaceholderTextBlock" Foreground="{x:Null}" IsHitTestVisible="False" Margin="{TemplateBinding Padding}" Opacity="0" Text="Xg"/&gt;
                                          &lt;Rectangle x:Name="PlaceholderRect" Fill="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}" IsHitTestVisible="False" Visibility="Collapsed"/&gt;
                                          &lt;Rectangle x:Name="MultiArrangeOverlayBackground" Fill="{StaticResource ListViewItemDragBackgroundThemeBrush}" IsHitTestVisible="False" Opacity="0"/&gt;
                                      &lt;/Grid&gt;
                                  &lt;/Border&gt;
                                  &lt;Rectangle x:Name="SelectedBorder" IsHitTestVisible="False" Margin="0" Opacity="0" Stroke="{StaticResource ListViewItemSelectedBackgroundThemeBrush}" StrokeThickness="{StaticResource ListViewItemSelectedBorderThemeThickness}"/&gt;
                                  &lt;!--&lt;Border x:Name="SelectedCheckMarkOuter" HorizontalAlignment="Right" IsHitTestVisible="False" Margin="4" VerticalAlignment="Top"&gt;
                                      &lt;Grid x:Name="SelectedCheckMark" Height="40" Opacity="0" Width="40"&gt;
                                          &lt;Path x:Name="SelectedEarmark" Data="M0,0 L40,0 L40,40 z" Fill="{StaticResource ListViewItemSelectedBackgroundThemeBrush}" Stretch="Fill"/&gt;
                                          &lt;Path Data="F1 M133.1,17.9 L137.2,13.2 L144.6,19.6 L156.4,5.8 L161.2,9.9 L145.6,28.4 z" Fill="{StaticResource ListViewItemCheckThemeBrush}" FlowDirection="LeftToRight" HorizontalAlignment="Right" Height="13" Margin="0,5.5,5.5,0" Stretch="Fill" VerticalAlignment="Top" Width="15"/&gt;
                                      &lt;/Grid&gt;
                                  &lt;/Border&gt;--&gt;
                                  &lt;TextBlock x:Name="MultiArrangeOverlayText" Foreground="{StaticResource ListViewItemDragForegroundThemeBrush}" FontSize="26.667" FontFamily="{StaticResource ContentControlThemeFontFamily}" IsHitTestVisible="False" Margin="0" Opacity="0" TextWrapping="Wrap" Text="{Binding TemplateSettings.DragItemsCount, RelativeSource={RelativeSource Mode=TemplatedParent}}" TextTrimming="WordEllipsis"/&gt;
                              &lt;/Grid&gt;
                          &lt;/Border&gt;
                      &lt;/Grid&gt;
                  &lt;/Border&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  
  &lt;SolidColorBrush x:Key="ListViewItemSelectedBackgroundThemeBrush" Color="#D5E1F2"/&gt;
  &lt;SolidColorBrush x:Key="ListViewItemSelectedPointerOverBackgroundThemeBrush" Color="#D5E1F2"/&gt;
  &lt;SolidColorBrush x:Key="ListViewItemSelectedPointerOverBorderThemeBrush" Color="#D5E1F2"/&gt;
  </code></pre>
  
  <p>And in Code Behind</p>
  
  <pre><code>    var cuticon = resources["CutIcon"] as ImageSource;
          var copyicon = resources["CopyIcon"] as ImageSource;
          var pasteoptionsicon = resources["PasteOptionsIcon"] as ImageSource;
          var pasteallicon = resources["PasteAllIcon"] as ImageSource;
          var pastevalueicon = resources["PasteValueIcon"] as ImageSource;
          var pasteformulaicon = resources["PasteFormulaIcon"] as ImageSource;
          var pasteformaticon = resources["PasteFormatIcon"] as ImageSource;
          var pastevalueformaticon = resources["PasteValueFormatIcon"] as ImageSource;
          var insertcommenticon = resources["InsertCommentIcon"] as ImageSource;
          var editcommenticon = resources["EditCommentIcon"] as ImageSource;
          var deletecommenticon = resources["DeleteCommentIcon"] as ImageSource;
          var hyperlinkicon = resources["HyperlinkIcon"] as ImageSource;
          var removehyperlinkicon = resources["RemoveHyperlinkIcon"] as ImageSource;
          var formatcellsicon = resources["FormatCellsIcon"] as ImageSource;
  
          var ribbonbuttonstyle = new Style(typeof(SfRibbonButton));
          ribbonbuttonstyle.Setters.Add(new Setter(SfRibbonButton.WidthProperty, "220"));
          ribbonbuttonstyle.Setters.Add(new Setter(SfRibbonButton.HeightProperty, "30"));
          ribbonbuttonstyle.Setters.Add(new Setter(SfRibbonButton.FontFamilyProperty, "Caliber"));
          ribbonbuttonstyle.Setters.Add(new Setter(SfRibbonButton.BackgroundProperty, "Transparent"));
          ribbonbuttonstyle.Setters.Add(new Setter(SfRibbonButton.SizeModeProperty, "Large"));
          ribbonbuttonstyle.Setters.Add(new Setter(SfRibbonButton.FontWeightProperty, "Normal"));
          ribbonbuttonstyle.Setters.Add(new Setter(SfRibbonButton.MarginProperty, "0"));
  
          var cutbutton = new SfRibbonButton
          {
              Command = this.Commands.Cut,
              Name = "CutButton",
              Label = GridResourceWrapper.Cut,
              Margin = new Thickness(0),
              BorderThickness = new Thickness(0),
              Icon = cuticon,
          };
          cutbutton.Height = 30;
          var copybutton = new SfRibbonButton
          {
              Command = this.Commands.Copy,
              Name = "CopyButton",
              Label = GridResourceWrapper.Copy,
              Margin = new Thickness(0),
              BorderThickness = new Thickness(0),
              Icon = copyicon,
              Style = ribbonbuttonstyle,
          };
          var pasteoptionstitlebutton = new SfRibbonButton
          {
              Name = "PasteOptionsTitleButton",
              Label = GridResourceWrapper.Context_PasteOptions,
              Height = 26,
              BorderThickness = new Thickness(0),
              Icon = pasteoptionsicon,
              Style = ribbonbuttonstyle,
              FontWeight = Windows.UI.Text.FontWeights.Bold,
              IsHitTestVisible = false,
              //Padding = new Thickness(0, 5, 0, 2)
          };
  </code></pre>