Browse Source

Fiddle with web browser scaling mode

Relates to: #559
Antony Male 4 years ago
parent
commit
e4345b6e69
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/SyncTrayzor/Pages/ViewerView.xaml

+ 2 - 1
src/SyncTrayzor/Pages/ViewerView.xaml

@@ -10,7 +10,7 @@
              mc:Ignorable="d" 
              d:DesignHeight="300" d:DesignWidth="300">
     <Grid>
-        <ContentControl Content="{Binding WebBrowser}">
+        <ContentControl Content="{Binding WebBrowser}" UseLayoutRounding="True">
             <ContentControl.Resources>
                 <Style TargetType="cefSharp:ChromiumWebBrowser">
                     <Setter Property="ContextMenu">
@@ -22,6 +22,7 @@
                             </ContextMenu>
                         </Setter.Value>
                     </Setter>
+                    <Setter Property="RenderOptions.BitmapScalingMode" Value="NearestNeighbor"/>
                 </Style>
             </ContentControl.Resources>
         </ContentControl>