左に画像があり、画像のすぐ隣に2つのボタンがあるWPFのウィンドウを設計しました。そして、私はに設定しWindowState
ましたMaximized
。
しかし、アプリケーションの実行中に、ギャップ b/w コントロールが増加しました。設計時のままアライメントが欲しい。windows application
そのまま取得すると、wpf
コントロールが自動的に整列されます。
これを行うのを手伝ってください、wpfが初めてです。Panels
この問題を解決できますか?
サンプル
<Window x:Class="AnalogCalibrationTool.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Analog Hardware Calibration Tool"
Height="500"
Width="700"
WindowStartupLocation="CenterScreen"
WindowStyle="SingleBorderWindow"
WindowState="Maximized"
ResizeMode="NoResize" SnapsToDevicePixels="True">
<Grid>
<Image HorizontalAlignment="Left" Margin="84.436,164.428,0,147.763" Name="image1" Stretch="Fill" Width="200" />
<Button Height="23" Margin="326.634,0,276.639,147.763" Name="button1" VerticalAlignment="Bottom">Button</Button>
<Button Height="29.997" HorizontalAlignment="Right" Margin="0,0,184.426,144.264" Name="button2" VerticalAlignment="Bottom" Width="75">Button</Button>
</Grid>
</Window>