Closed wieslawsoltes closed 7 months ago
Controls inside InlineUIContainer are not rendered when when added to new InlineCollection and set to Inlines.
Repro:
<TextBlock> <TextBlock.Inlines> <InlineCollection> <Run>Some text</Run> <InlineUIContainer> <StackPanel> <Button Content="Button 1" /> <Button Content="Button 2" /> </StackPanel> </InlineUIContainer> </InlineCollection> </TextBlock.Inlines> </TextBlock>
<TabControl> <TabItem Header="Inlines Content"> <TextBlock> <Run>Some text</Run> <InlineUIContainer> <StackPanel> <Button Content="Button 1" /> <Button Content="Button 2" /> </StackPanel> </InlineUIContainer> </TextBlock> </TabItem> <TabItem Header="Inlines Directly"> <TextBlock> <TextBlock.Inlines> <Run>Some text</Run> <InlineUIContainer> <StackPanel> <Button Content="Button 1" /> <Button Content="Button 2" /> </StackPanel> </InlineUIContainer> </TextBlock.Inlines> </TextBlock> </TabItem> <TabItem Header="Inlines InlineCollection"> <TextBlock> <TextBlock.Inlines> <InlineCollection> <Run>Some text</Run> <InlineUIContainer> <StackPanel> <Button Content="Button 1" /> <Button Content="Button 2" /> </StackPanel> </InlineUIContainer> </InlineCollection> </TextBlock.Inlines> </TextBlock> </TabItem> </TabControl>
Controls inside InlineUIContainer are rendered.
I think this PR https://github.com/AvaloniaUI/Avalonia/commit/0c2c3f1aeb01bb8a7661d206a27065a6ac38aac3 broke adding VisualChildren
Describe the bug
Controls inside InlineUIContainer are not rendered when when added to new InlineCollection and set to Inlines.
To Reproduce
Repro:
Expected behavior
Controls inside InlineUIContainer are rendered.
Screenshots
Environment
Additional context