My syncfusion version is 20.2.0.43. when I closed a tab or all tabs,the memory is not reduced. I went through some of the posts on the forum,but i can not resolve this issue,my code as below:
<syncfusion:TabControlExt x:Name="tab"
Grid.Column="1"
prism:RegionManager.RegionName="ContentRegion"
CloseButtonType="Individual"
CloseMode="Delete"
OnCloseButtonClick="Tab_OnCloseButtonClick"
ShowTabListContextMenu="False"
>
<i:Interaction.Triggers>
<i:EventTrigger EventName="OnCloseAllTabs">
<i:InvokeCommandAction Command="{Binding DataContext.CloseAllTabs, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}" />
</i:EventTrigger>
<i:EventTrigger EventName="OnCloseOtherTabs">
<i:InvokeCommandAction Command="{Binding DataContext.CloseOtherTabs, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}" CommandParameter="{Binding SelectedItem, ElementName=tab}" />
</i:EventTrigger>
</i:Interaction.Triggers>
<syncfusion:TabControlExt.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Content.DataContext.Title, RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}" />
</DataTemplate>
</syncfusion:TabControlExt.ItemTemplate>
</syncfusion:TabControlExt>
private void Tab_OnCloseButtonClick(object sender, Syncfusion.Windows.Tools.Controls.CloseTabEventArgs e)
{
var datacontext = this.DataContext as MainWindowViewModel;
datacontext.close((e.TargetTabItem as ContentControl).Content );
}
this method will remove view form prism region
public void close(object obj)
{
regionManager.Regions["ContentRegion"].Remove(obj);
}
I do not know where is the problem,please give me a help,thanks
We have confirmed the reported scenario is a defect and logged a report for the reported scenario “Memory of the tabitem exists even after closing the tab”. We will include the fix in our Weekly NuGet release which is scheduled on 20th December 2022.
You can track the status of this defect using
the following feedback link:
Memory of the tabitem exists even after closing the tab in WPF | Feedback Portal (syncfusion.com)
If you have any more specification replication
procedures or a scenario to be tested, you can add it as a comment in the
portal.
Please let us know if you need any further
assistance.
Note: The provided
feedback link is private, and you need to log in to view this feedback.
Thanks very much for the reply , there is no more question,then i wait for the problem to be fixed, thanks again.
I have logined,but i can not open this link,what is wrong?
We have provided access to the feedback link to your credentials. So, please try clearing the cache and using an incognito window
Sorry for the inconvenience,
We are still working on this issue with high priority. We will update the fix in our upcoming NuGet release which is scheduled on 27th December 2022. We will appreciate your patience until then.
I will update the lastest version,look forward to resolving the problem. thanks again
We have included the fix for the reported issue “Memory of the tabitem exists even after closing the tab” in our Weekly NuGet release version 20.4.0.42 which is available for download ( https://www.nuget.org/).
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
Thanks very much for your response, I will update as soon as possible, I will connect you if there are any issues