c# - Disable Mouse Over focus in Windows 8 Metro Application -


i working on window8 metro application in application inserting 2 image buttons,in simulator mouse mode pointer entered time getting focus.

i implementing code ...

 private void button_pointerentered(object sender, windows.ui.xaml.input.pointereventargs e)  {      system.diagnostics.debug.writeline("pointer entered");      button thisbutton = (button)sender;      thisbutton.focus(focusstate.unfocused);  } 

how can disable focus on mouse pointer entered ?

i don't use windows 8 metro yet, try adding this:

<setter property="focusvisualstyle" value="{x:null}" /> 

that should stop visualisations mouseover , whatnot, thats wpf answer, should work metro, no promises!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -