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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -