Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Multiselecttreeview inside popup #36

Open
madhankumar-g opened this issue Sep 17, 2016 · 1 comment
Open

Multiselecttreeview inside popup #36

madhankumar-g opened this issue Sep 17, 2016 · 1 comment

Comments

@madhankumar-g
Copy link

madhankumar-g commented Sep 17, 2016

When I try to use this MultiSelectTreeView inside a popup, the popup closes on clicking on any item inside the MultSelectTreeViewItem. This behavior is not observed with WPF treeview, is there any quick fix for this?

Sample code to repro:

<StackPanel>
    <ToggleButton x:Name="toggleButton" Content="Open/Close Popup" 
                  Width="50" VerticalAlignment="Center"
                  HorizontalAlignment="Center"/>
    <Popup IsOpen="{Binding IsChecked, ElementName=toggleButton}"
           StaysOpen="False" PlacementTarget="{Binding ElementName=toggleButton}"
           Placement="Right">
        <mstv:MultiSelectTreeView>
            <mstv:MultiSelectTreeViewItem Header="1">
                <mstv:MultiSelectTreeViewItem Header="a" />
                <mstv:MultiSelectTreeViewItem Header="b" />
                <mstv:MultiSelectTreeViewItem Header="c" />
            </mstv:MultiSelectTreeViewItem>
            <mstv:MultiSelectTreeViewItem Header="2"/>
        </mstv:MultiSelectTreeView>
    </Popup>
</StackPanel>
@ygoe
Copy link
Owner

ygoe commented Sep 28, 2016

I have read and understood your report but didn't get to try and reproduce it yet. I'm not working that much with popups so I can't provide any solution without trying it. I'm sorry it can still take a while until I can take a look at this.

In the meantime you might want to take a look at SharpTreeView which supports more features than MultiSelectTreeView.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants