注: これは、私が WPF を使用するのは初めての 1 つです。
特定のコントロールを配置しようとしています。今のところボタンとしましょう。右下隅にあります。しかし、アプリケーションをデバッグすると、下と右に 8 ピクセルがありません。何が起こったかを示すために2枚の写真を添付します。
ボタンを所定の位置に保つにはどうすればよいですか?
私のXAMLコード:
<Window x:Class="Plugin_Manager.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Plugin Manager" Height="350" Width="525" Loaded="Window_Loaded_1">
<Grid x:Name="GridMain">
<Button Content="Refresh" Margin="432,288,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="75"/>
<ListView HorizontalAlignment="Left" Height="273" Margin="10,10,0,0" VerticalAlignment="Top" Width="497">
<ListView.View>
<GridView>
<GridViewColumn/>
</GridView>
</ListView.View>
</ListView>
</Grid>