Avalonia: DockPanel overlay elements

Created on 9 Jun 2019  路  6Comments  路  Source: AvaloniaUI/Avalonia

in avalonia dockpanel overlay elements

 <DockPanel>
       <!-- <rxui:RoutedViewHost  DockPanel.Dock="Bottom"  Router="{Binding Router}"/> -->
       <Button Content="Ok" DockPanel.Dock="Bottom"  />
        <!--Icon-->
            <Viewbox  DockPanel.Dock="Left" Margin="20,20,20,0" RenderTransformOrigin="0,0">
                <ContentPresenter  Content="{Binding Drawing}" />
            </Viewbox>
        <StackPanel DockPanel.Dock="Left" Margin="0,20,20,0">
            <!--Bold text-->
            <TextBlock  Text="i set textblock textwrapping, and now it's looks very strange as i think it's shouldn't do like this" 
                        TextWrapping="Wrap"/>
            <!--Content text-->
            <TextBlock Margin="0,20,0,0" Text="i set textblock textwrapping, and now it's looks very strange as i think it's shouldn't do like this" 
                        TextWrapping="Wrap"/>
        </StackPanel>
    </DockPanel>

Screenshot from 2019-06-09 14-51-17
but in wpf evething is ok

<DockPanel>
        <Button Content="Ok" DockPanel.Dock="Bottom"  />

        <!--Icon-->
        <Viewbox  DockPanel.Dock="Left" Margin="20,20,20,0" RenderTransformOrigin="0,0">

                <Canvas Width="50" Height="50">
               <!-- canvas data-->
                </Canvas>

        </Viewbox>
        <StackPanel DockPanel.Dock="Left" Margin="0,20,20,0">
            <!--Bold text-->
            <TextBlock  Text="i set textblock textwrapping, and now it's looks very strange as i think it's shouldn't do like this" 
                        TextWrapping="Wrap"/>
            <!--Content text-->
            <TextBlock Margin="0,20,0,0" Text="i set textblock textwrapping, and now it's looks very strange as i think it's shouldn't do like this" 
                       TextWrapping="Wrap"/>
        </StackPanel>
    </DockPanel>

photo_2019-06-09_14-44-50

bug

Most helpful comment

yes , and i dislike this, i wanna as in wpf
i try to play with opacity, but it didn't help

All 6 comments

Is the problem that the Window you defined isn't large enough for the text and it overflowed? What happens in WPF if you resized it so that the text is larger than the area you are giving it to draw in?

photo_2019-06-09_15-13-00

So the nature of the bug is that the z-order isn't corresponding to the order of the controls laid out in the XAML?

no, button in wpf and in avalonia are on textbox, but in avalonia i see text, don't know why

The button text is there it's just intertwined with the text from the overflowing textblock

yes , and i dislike this, i wanna as in wpf
i try to play with opacity, but it didn't help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

georgiuk picture georgiuk  路  3Comments

CreateLab picture CreateLab  路  3Comments

khoshroomahdi picture khoshroomahdi  路  4Comments

ZZerker picture ZZerker  路  4Comments

x2bool picture x2bool  路  4Comments