0

我有一个问题,我的控件在不同的分辨率下消失,它发生在我将它设置为使用夹点调整大小之后,当你用夹点调整它的大小以使其更小时,我的所有控件开始缩小并且没有像它那样被“推动”带边框的表格

1280x1024

在此处输入图像描述

1366x768

在此处输入图像描述

    Title="omini_dækberegner" WindowStartupLocation="CenterScreen"
    HorizontalAlignment="Left" VerticalAlignment="Top"
    MouseDown="Window_MouseDown" Topmost="True" x:Name="win"
    WindowStyle="None"
    Height="{x:Static SystemParameters.PrimaryScreenHeight}"
    Width="{x:Static SystemParameters.PrimaryScreenWidth}"
    ResizeMode="CanResizeWithGrip"
    AllowsTransparency="True" Visibility="Visible" SnapsToDevicePixels="True"
    IsHitTestVisible="True" Loaded="win_Loaded">
<WindowChrome.WindowChrome>
    <WindowChrome 
    CaptionHeight="0"
    ResizeBorderThickness="5" />
</WindowChrome.WindowChrome>

    <TabControl x:Name="tabControl"
                Background="#FF494949" BorderBrush="#FF494949" Foreground="#FF494949"
                HorizontalContentAlignment="Stretch" 
                VerticalContentAlignment="Stretch"
                Margin="0,52,0,-2" >
        <TabItem Header="Dækberegner" Background="#FF303030" Foreground="#FFEAEAEA"
                 BorderBrush="#FF303030" FontSize="16"
                 VerticalAlignment="Bottom">
            <Grid  Background="#FF494949">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBox x:Name="bredebox_nu"
                         Margin="42,140,1014,697"
                         Height="24" Width="120"
                         TextWrapping="Wrap" Foreground="#FFEAEAEA" Background="#FF303030"
                         MaxLength="3" TabIndex="0" TextChanged="bredebox_nu_TextChanged" />
4

0 回答 0