C#C
C#2y ago
Falco

WPF UI appears different in debug

idk... My first WPF app. Looks like I matched the grid with the right coordinates. Still being weird.

What am I missing here?
<Window x:Class="Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:EpicUnfriender"
        mc:Ignorable="d"
        Title="MainWindow" Height="193" Width="412">
    <Grid Margin="0,-0,0,-0">
        <Grid.RowDefinitions>
            <RowDefinition Height="193*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="412*"/>
        </Grid.ColumnDefinitions>
        <Button x:Name="Start" Content="Start" HorizontalAlignment="Left" Height="22" Margin="21,141,0,0" VerticalAlignment="Top" Width="68" BorderBrush="#FFC35151" RenderTransformOrigin="0.457,0.761" Click="Button_Click" Background="#FFF5F5FF"/>
        <Button x:Name="Stop" Content="Stop" HorizontalAlignment="Left" Height="22" Margin="114,141,0,0" VerticalAlignment="Top" Width="64" Background="#FFF3F3F3" BorderBrush="#FFC35151" RenderTransformOrigin="0.457,0.761"/>
        <TextBox x:Name="LogBox" HorizontalAlignment="Center" Margin="0,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="370" Height="126"/>


    </Grid>
</Window>
image.png
image.png
Was this page helpful?