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

Multiselecttreeview inside popup #36

Open

Description

@madhankumar-g

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>

Activity

  1. ygoe commented on Sep 28, 2016

    @ygoe
    Owner

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions