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>

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>

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?

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
Most helpful comment
yes , and i dislike this, i wanna as in wpf
i try to play with opacity, but it didn't help