These are chat archives for ButchersBoy/Dragablz

23rd
Jun 2016
Artur
@l1pton17
Jun 23 2016 09:54
Can HeaderItemOrganiser lead to memory leak? I have an application that creates a child window with tabablzcontrol, if i close the child window, it will be still in memory. I checked out memory with ants profiler and figure out that child windows holds by TabablzControl.HeaderItemsOrganiser property (HorizontalOrganiser instance).
Artur
@l1pton17
Jun 23 2016 10:37
    public static readonly DependencyProperty HeaderItemsOrganiserProperty = DependencyProperty.Register(
        "HeaderItemsOrganiser", typeof (IItemsOrganiser), typeof (TabablzControl), new PropertyMetadata(new HorizontalOrganiser()));
There is default value of HeaderItemsOrganiser is the instance. Ants tells me that memory leak in that place.
James Willock
@ButchersBoy
Jun 23 2016 11:55
Can you log an issue?
Artur
@l1pton17
Jun 23 2016 14:13
@ButchersBoy maybe there is no an issue
@ButchersBoy Is it OK to use tababalz in this way:
        <dragablz:TabablzControl Grid.Column="0"
                                 ShowDefaultAddButton="False"
                                 ShowDefaultCloseButton="False"
                                 Padding="0">
            <dragablz:TabablzControl.Items>
                <TabItem Header="{Binding SimplePresenterHubViewModel.HeaderInfo}">
                    <vr:SimplePresenterHubView Margin="10" DataContext="{Binding SimplePresenterHubViewModel}"/>
                </TabItem>
                <TabItem Header="{Binding CombinationHubViewModel.HeaderInfo}">
                    <v:CombinationHubView Margin="10" DataContext="{Binding CombinationHubViewModel}"/>
                </TabItem>
                <TabItem Header="{Binding EmulationHubViewModel.HeaderInfo}">
                    <v:EmulationHubView Margin="10" DataContext="{Binding EmulationHubViewModel}"/>
                </TabItem>
                <TabItem Header="{Binding SourceCodeViewModel.HeaderInfo}">
                    <vr:SourceCodeView Margin="10" DataContext="{Binding SourceCodeViewModel}"/>
                </TabItem>
            </dragablz:TabablzControl.Items>
        </dragablz:TabablzControl>
cuz only this tabablzcontrol lead to memory leak
James Willock
@ButchersBoy
Jun 23 2016 14:27
Well...it should be ok...
Have another look...if there's a leak log it