wpf - "Ghost" ContentControl stealing focus -
i have tabbed control using template selector, correct template selected contains webbrowser component, when using keyboard (up/down arrows) keyboardfocus toggels between rest of application , web page.
using snoop can webbrowser control behave setting focusable property of containing contentcontrol false, can't figure out where/how set contentcontrol property programmatically!
a snippet snoop:
part_selectedcontenthost theme (focusable == false) contentcontrol (focusable == **true**) [where come from? it's "content" viewmodel] contentpresenter (focusable == false) [where come from?] webpageview (my created component, focusable == false) ... (focusable == false) wbcontent (focusable == true)
i've tried using targeted style resource in contentpresenter of part_selectedcontenthost no luck.
anyone ideas?
thanks
try deriving tab control. override onapplytemplate method , find contentcontrol name. once found change property.
Comments
Post a Comment