私はapostrophies挿入するために使用StringFormatをしようとしているのTextBlockにバインドされた値の周り(アポストロフィのを?):XAMLバインディングのStringFormatでアポストロフィを使用できませんか?
<TextBlock Text="{Binding MyValue, StringFormat='The value is '{0}''}"/>
しかし、私はコンパイルエラーを取得:
Names and Values in a MarkupExtension cannot contain quotes. The MarkupExtension arguments ' MyValue, StringFormat='The value is '{0}''}' are not valid.
私は通知を行いますそれは引用符で動作します:
<TextBlock Text="{Binding MyValue, StringFormat='The value is "{0}"'}"/>
これはStringFormatのバグですか?
あまりにも私の作品うんを、。 * whew *! – Zodman
残念ながら、Silverlightでは動作しません。 – Rajiv