question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editing contents of a <TabItem> causes the designer to swap back to the first <TabItem>

See original GitHub issue

Normally in WPF (I believe) when editing the XAML contents of a <TabItem> the designer will switch to that tab so you can see the controls you are adding. I can also switch to this tab by clicking on it in the designer.

In Avalonia, I can click on the tab in the designer but the moment I start modifying the XAML contents of that tab, the designer swaps back to the first tab.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
kekekekscommented, Sep 17, 2020

there would be special concept for tab control, to change tabs based on what it sees in designer like scroll scrollviewer to edited item etc.

BringIntoView

1reaction
ShadowDancercommented, Sep 17, 2020

I think this is a bit of over-engineering, because - as I understand it - there would be special concept for tab control, to change tabs based on what it sees in designer. However I think this is not really robust, because next things will soon follow, like scroll scrollviewer to edited item etc.

I think what we really need here is Xaml hot-reload, so user may choose tabitem he wishes, and then find the subtree which needs to be modified and only that subtree is reloaded in previewer. Do we have plans to support it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Changing tab item of tabcontrol on design view
I'm trying to add control to another TabItem on design view, but I can only see the first TabItem with all the controls...
Read more >
Tab reloads control after switching tab in UI for Silverlight
The TabControl removes the content when no longer needed because the content of the TabItem could be anything, including something "heavy". If ...
Read more >
TabControl Class (System.Windows.Forms)
A TabControl contains tab pages, which are represented by TabPage objects that you add through the TabPages property. The order of tab pages...
Read more >
About Tab Controls - Win32 apps
You can apply certain characteristics to tab controls by specifying tab control styles when the control is created. For example, you can specify ......
Read more >
Flutter TabBar: A complete tutorial with examples
TabBar enables you to improve the UX of your Flutter app by organizing content with tabs for users to tap and scroll through....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found