Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: DropDownButton in ListView loses focus

$
0
0
Hi all,

I am displaying items in ListView (that uses GridView). In one of the GridViewColumn I placed DropDownButton (which will allow setting some parameters).

For testing purpose I placed xceed ColorCanvas as DropDownButton.DropDownContent.

The problem is, that if I click into ColorCanvas DropDown gets closed.
When I click on the sliders or textboxes in ColorCanvas, it works fine. DropDown get closed only when I click to some other place in ColorCanvas.

My xaml looks like this:
<Grid x:Name="LayoutRoot">
    <ListView >
        <ListView.View>
            <GridView>
                <GridViewColumn Header="abc" Width="130">
                    <GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <xcd:DropDownButton Content="#">
                                <xcd:DropDownButton.DropDownContent>
                                    <xcd:ColorCanvas/>
                                </xcd:DropDownButton.DropDownContent>
                            </xcd:DropDownButton>
                        </DataTemplate>
                    </GridViewColumn.CellTemplate>
                </GridViewColumn>
            </GridView>
        </ListView.View>
        <ListViewItem/>
        <ListViewItem/>
        <ListViewItem/>
    </ListView>
</Grid>
Do you have any idea why this happens and how to resolve this issue?

Thank you.

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>