xaml - StaticResource for StringFormat in win phone not working -
i have declared resource in application.resources
<sys:string x:key="decimalformat">\{0:f2\}</sys:string>
now on textbox giving static resource stringformat not working. tried binding of stringformat application breaks. there want make stringformat dynamic.
use without slash when defining resource
<sys:string x:key="decimalformat">{0:f2}</sys:string> <textblock text="{binding mydecimal, stringformat={staticresource decimalformat}}" />
Comments
Post a Comment