Skip to content

How to create Avalonia controls that "float" aligned bottom right above other controls? #15638

Answered by MikeCodesDotNET
uxmal asked this question in Q&A
Discussion options

You must be logged in to vote

The following XAML will produce a view similar to what you're looking for.

<Panel>
        <TextBox Text="{Binding Greeting}"
                   HorizontalAlignment="Stretch" 
                   VerticalAlignment="Stretch"
                   TextWrapping="Wrap"/>
        
        <TextBlock Text="Loading... (56%)" 
                   Background="Blue"
                   Foreground="White"
                   Padding="10"
                   VerticalAlignment="Bottom"
                   HorizontalAlignment="Right"/>
 </Panel>

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@uxmal
Comment options

Answer selected by uxmal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants