0

Image Of UserControl While In Design Mode

Code For UserControl In Xaml

<UserControl x:Class="UserControl1"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
         xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
         mc:Ignorable="d" 
         d:DesignHeight="90" d:DesignWidth="90">

<Grid Background="Yellow" >
    <Canvas Name="T3Spark">
        <Polygon Fill="Red" Points="10,10,10,10 10,80,80,10"></Polygon>
    </Canvas>
</Grid><UserControl>

What I Don't Understand Is: Why's There A Gap When I'm Adding The Usercontrol To My Windows Form And How To Remove It?

Image Of When Adding The UserControl To The Form.

Sir Rufo
  • 18,395
  • 2
  • 39
  • 73
  • [DPI Awareness - Unaware in one Release, System Aware in the Other](https://stackoverflow.com/a/50276714/7444103) – Jimi Feb 19 '22 at 00:21
  • @Jimi - My Both Projects Are Set To Be Dpi Aware But Still, The Problem Persists. – tapus aggarwal Feb 19 '22 at 06:52
  • In Design mode? It looks like you're not designing a 100% scale. The other information is for Run-time mode. – Jimi Feb 19 '22 at 07:15

0 Answers0