webview in tabcontrol#35
Conversation
devinZhou102
commented
Dec 27, 2023
- webview not work well when tab changed
- webview leads crash when tab changed before the webview load properly
2. webview leads crash when tab changed before the webview load properly
|
If you change the tab and then go back to the tab with teh webview, the webview is empty |
this issue can be fixed by using the pr in this repo, yes you have to build it by yourself |
|
This is probably related to the issue I submitted as #20 and actually added a fix for this within Avalonia itself (since this project doesn't seem to get much attention anymore) |
|
Excellent fix, thanks for this. |
|
@charleypeng which PR are you referring to? |
|
If you are hitting this, I solved it by replacing Example: <Grid RowDefinitions="Auto, *">
<TabStrip>
<TabStripItem x:Name="PayoutTab">
<TextBlock Text="Payout" />
</TabStripItem>
<TabStripItem x:Name="SetupTab">
<TextBlock Text="Setup" />
</TabStripItem>
</TabStrip>
<WebView Grid.Row="1" Url="https://stripe.com"
IsVisible="{Binding #PayoutTab.IsSelected}" />
<TextBlock Grid.Row="1"
IsVisible="{Binding #SetupTab.IsSelected}" >
Some real setup here.
</TextBlock>
</Grid> |