i spent long time looking way make boring wpf button little more interactive, , behave winforms button, without having implement functionality myself. here example of want:
i tried using windowsformshost add winforms button wpf application this:
<windowsformshost grid.row="0" grid.column="0" width="50" height="20" horizontalalignment="right" verticalalignment="bottom"> <win:button text="click" left="50" top="50" size="50,20"/> </windowsformshost> but appeared in gray, old style: 
how can add windows 10 interactivity wpf buttons (like in winforms), without having implement functionality myself?
update: "more interactive" mean have thick blue border when in focus, , behave smooth transitions, windows 10 system button.
by "more interactive" mean have thick blue border when in focus, , behave smooth transitions, windows 10 system button.
it's matter of styling. fancy things require override template in style. transitions 1 uses visualstatemanager. (most controls have pre-defined states, not need invoke visualstatemanager.gotoelementstate yourself. button states along usage example style can found here.)


Comments
Post a Comment