i've created wpf application. has have red colored theme. set every color type of red, problem buttons within window start blinking when window opens. funny thing start simultaneously after while begin diverge. when form loses focus stop blinking. when button clicked, 1 keeps blinking. when "not button" control gains focus start blinking again.
i found have focusable property, changing doesn't change anything. found way overwrite default style doesn't solve problem ether. source
this xaml code:
<grid x:name="gserversettings"> <label x:name="ltitle" content="server settings" horizontalalignment="center" margin="182,0,0,166" verticalalignment="center" width="118" foreground="#ffff9999" horizontalcontentalignment="center" verticalcontentalignment="center" fontsize="16" fontweight="bold" height="34"/> <textbox x:name="tserver" margin="72,39,10,0" textwrapping="wrap" background="{x:null}" foreground="#ffff9999" borderbrush="#ffff9999" selectionbrush="#ffff9999" borderthickness="1" verticalcontentalignment="center" height="24" verticalalignment="top" tabindex="0"/> <label x:name="lserver" content="server" horizontalalignment="left" margin="10,39,0,0" verticalalignment="top" width="62" foreground="#ffff9999" height="24" verticalcontentalignment="center"/> <textbox x:name="tdatabase" margin="72,68,10,0" textwrapping="wrap" background="{x:null}" foreground="#ffff9999" borderbrush="#ffff9999" selectionbrush="#ffff9999" borderthickness="1" verticalcontentalignment="center" height="24" verticalalignment="top" tabindex="1"/> <label x:name="ldatabase" content="database" horizontalalignment="left" margin="10,68,0,0" verticalalignment="top" width="62" foreground="#ffff9999" verticalcontentalignment="center" height="24"/> <textbox x:name="tusername" margin="72,97,10,0" textwrapping="wrap" background="{x:null}" foreground="#ffff9999" borderbrush="#ffff9999" selectionbrush="#ffff9999" borderthickness="1" verticalcontentalignment="center" height="24" verticalalignment="top" tabindex="2"/> <label x:name="lusername" content="username" horizontalalignment="left" margin="10,97,0,0" verticalalignment="top" width="62" foreground="#ffff9999" verticalcontentalignment="center" height="24"/> <label x:name="lpassword" content="password" horizontalalignment="left" margin="10,126,0,0" verticalalignment="top" width="62" foreground="#ffff9999" verticalcontentalignment="center" height="24"/> <passwordbox x:name="tpassword" margin="72,126,10,0" background="{x:null}" foreground="#ffff9999" borderbrush="#ffff9999" selectionbrush="#ffff9999" borderthickness="1" verticalcontentalignment="center" height="24" verticalalignment="top" tabindex="3"/> <button x:name="bok" content="ok" horizontalalignment="left" margin="215,168,0,0" verticalalignment="top" width="75" background="{x:null}" borderbrush="{x:null}" foreground="#ffff9999" borderthickness="1" isdefault="true" tabindex="6"/> <button x:name="bcancel" content="cancel" horizontalalignment="left" margin="135,168,0,0" verticalalignment="top" width="75" background="{x:null}" borderbrush="{x:null}" foreground="#ffff9999" borderthickness="1" isdefault="true" tabindex="5"/> <button x:name="btestconnection" content="test connection" horizontalalignment="left" margin="10,168,0,0" verticalalignment="top" width="120" background="{x:null}" borderbrush="{x:null}" foreground="#ffff9999" borderthickness="1" isdefault="true" tabindex="4" ishittestvisible="false"/> </grid> i don't programmatically yet, .cs file empty.

does know how solve problem?
you'd have reimplement button style , remove storyboard. can dump out default button style expression blend , modify liking. there isn't other easy way disable storyboard.
Comments
Post a Comment