Search code examples
wpfsizescale

wpf. UserControl size 1280x720. It does not fit into the screen if scale >= 175%


I create UserControl with size 1280x720, it does not fit into the screen if scale >= 175%. UserControl size can not be reduced. What can be done?


Solution

  • I find solution. I found the solution, it is necessary to use MainWindow.xaml ScaleTransform:

    <Grid.LayoutTransform>
       <ScaleTransform x:Name="GlobalScale" ScaleX="1" ScaleY="1">
       </ScaleTransform>
    </Grid.LayoutTransform>