You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SelectableTextBlock with inlines renders no content after closing context menu of another control by click this SelectableTextBlock.
To Reproduce
Create an Avalonia .NET App (AvaloinaUI) project
Replace the content in MainWindow.axaml with the code shown below
<Windowxmlns="https://github.com/avaloniaui"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"mc:Ignorable="d"d:DesignWidth="800"d:DesignHeight="450"Width="400"Height="200"x:Class="SelectableTextBlockDemo.MainWindow"Title="SelectableTextBlockDemo">
<StackPanelOrientation="Vertical">
<TextBlockText="SelectableTextBlock Demo"Margin="0,12"HorizontalAlignment="Center"/>
<BorderBackground="Green"Height="24">
<Border.ContextMenu>
<ContextMenu>
<MenuItemHeader="Just a menu item 1"/>
<MenuItemHeader="Just a menu item 2"/>
</ContextMenu>
</Border.ContextMenu>
<TextBlockText="Right Click Here to Open Context Menu"HorizontalAlignment="Center"VerticalAlignment="Center"/>
</Border>
<SelectableTextBlockBackground="Transparent"FontSize="16"Margin="0,8,0,0"HorizontalAlignment="Center">
<Run>This is a</Run>
<RunForeground="Red">SelectableTextBlock</Run>
<Run>with inline elements</Run>
</SelectableTextBlock>
<SelectableTextBlockBackground="Transparent"FontSize="16"Margin="0,8,0,0"HorizontalAlignment="Center"Text="This is a SelectableTextBlock without inlines"/>
</StackPanel>
</Window>
As shown in the video, run the project
Expected behavior
After the context menu closed by clicking above the first SelectableTextBlock, the first SelectableTextBlock should redraw correctly.
Avalonia version
11.1.3
OS
Windows, macOS, Linux
Additional context
This video shows how to reproduce this issue
demo.mp4
The text was updated successfully, but these errors were encountered:
Describe the bug
SelectableTextBlock with inlines renders no content after closing context menu of another control by click this SelectableTextBlock.
To Reproduce
Avalonia .NET App (AvaloinaUI)
projectMainWindow.axaml
with the code shown belowExpected behavior
After the context menu closed by clicking above the first SelectableTextBlock, the first SelectableTextBlock should redraw correctly.
Avalonia version
11.1.3
OS
Windows, macOS, Linux
Additional context
This video shows how to reproduce this issue
demo.mp4
The text was updated successfully, but these errors were encountered: