<Style xmlns="https://github.com/avaloniaui"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       Selector="OverlayPopupHost">
  <Setter Property="Foreground" Value="{DynamicResource ThemeForegroundBrush}" />
  <Setter Property="FontSize" Value="{DynamicResource FontSizeNormal}" />
  <Setter Property="FontFamily" Value="{x:Static FontFamily.Default}" />
  <Setter Property="FontWeight" Value="400" />
  <Setter Property="FontStyle" Value="Normal" />
  <Setter Property="Template">
    <ControlTemplate>
      <!--  Do not forget to update Templated_Control_With_Popup_In_Template_Should_Set_TemplatedParent test  -->
      <LayoutTransformControl LayoutTransform="{TemplateBinding Transform}">
        <VisualLayerManager IsPopup="True">
          <ContentPresenter Name="PART_ContentPresenter"
                            Background="{TemplateBinding Background}"
                            ContentTemplate="{TemplateBinding ContentTemplate}"
                            Content="{TemplateBinding Content}"
                            Padding="{TemplateBinding Padding}"/>
        </VisualLayerManager>
      </LayoutTransformControl>
    </ControlTemplate>
  </Setter>
</Style>
