Share via

Button displaying weirdly on runtime

Marcelsky 1 Reputation point
2021-05-18T15:50:46.747+00:00

So essentialy the buttons i place just are in a different position at runtime

How its supposed to look like: 97577-zrzut-ekranu-2021-05-18-174822.png

How it looks like:
97550-zrzut-ekranu-2021-05-18-174906.png

Developer technologies | Windows Presentation Foundation
Developer technologies | XAML
Developer technologies | XAML

A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.


1 answer

Sort by: Most helpful
  1. Viorel 127K Reputation points
    2021-05-18T17:20:18.74+00:00

    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.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.