<Style xmlns="https://github.com/avaloniaui" Selector="ContextMenu">
    <Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderMidBrush}"/>
    <Setter Property="BorderThickness" Value="1"/>
    <Setter Property="Padding" Value="4,2"/>
    <Setter Property="TextBlock.FontSize" Value="{DynamicResource FontSizeNormal}" />
    <Setter Property="TextBlock.FontWeight" Value="Normal" />
    <Setter Property="Template">
    <ControlTemplate>
      <Border Background="{TemplateBinding Background}"
              BorderBrush="{TemplateBinding BorderBrush}"
              BorderThickness="{TemplateBinding BorderThickness}"
              Padding="{TemplateBinding Padding}">
          <ScrollViewer>
            <Panel>
              <ItemsPresenter Name="PART_ItemsPresenter"
                              Items="{TemplateBinding Items}"
                              ItemsPanel="{TemplateBinding ItemsPanel}"
                              ItemTemplate="{TemplateBinding ItemTemplate}"
                              KeyboardNavigation.TabNavigation="Continue"/>
              <Rectangle Name="iconSeparator"
                         Fill="{DynamicResource ThemeControlMidBrush}"
                         HorizontalAlignment="Left"
                         IsHitTestVisible="False"
                         Margin="29,2,0,2"
                         Width="1"/>
              </Panel>
          </ScrollViewer>
      </Border>
    </ControlTemplate>
  </Setter>
</Style>
