我有一个问题,我的控件在不同的分辨率上消失了,它发生在我用手柄调整大小后,当你用夹子调整大小以使其变小时,我的所有控件都开始缩小并且不会被“推”为它在带边框的表单上执行
在1280x1024
on 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" />