So essentialy the buttons i place just are in a different position at runtime
How its supposed to look like: 
How it looks like:
So essentialy the buttons i place just are in a different position at runtime
How its supposed to look like: 
How it looks like:
@Marcelsky-4530
This situation should be caused by setting the Margin of the Button. Control's position is affected by Margin, HorizontalAlignment, VerticalAlignment, <object margin="left,top,right,bottom" /> gets or sets the outer Margin of an element.
Switch to XAML view and try the next example:
<Window . . . Height="450" Width="800">
<Grid>
<Button Content="Button" HorizontalAlignment="Left" Margin="50,0,0,50"
Width="150" Height="50" VerticalAlignment="Bottom"/>
</Grid>
</Window>
where “...” is something that is already added by system and you should not change.
Show your XAML too.
7 people are following this question.