Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Expander MouseOver Issue

$
0
0

Hi,

I have Expander control which shows list of items when you expand it. If i do mouse hover over on header, it will expand it. Like this below :

I need following things which needs to be implemented from code behind or in xaml.

1) if user do mouseover on expander header and press enter key then by default first item from the list needs to be selected.

2) if user do mouseover on one of the item of list and press enter key then we have to select perticular item. - I already have this implemented.

My question is I am able to capture enter key event in code behind but how would I know that user has mouse over on expander header or expander item as I have to do two diff things.

Thanks

Dee


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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