在我的代碼我有一個字符串:WPF TargetNullValue源從代碼
Dim a As String
a = "This string is dynamic"
在我的XAML要設置我的DataGridTextColumn
等於的TargetNullValue
。
我知道我可以設置TargetNullValue=This string is dynamic
,但是,正如所暗示的,a是動態的。
在我的代碼我有一個字符串:WPF TargetNullValue源從代碼
Dim a As String
a = "This string is dynamic"
在我的XAML要設置我的DataGridTextColumn
等於的TargetNullValue
。
我知道我可以設置TargetNullValue=This string is dynamic
,但是,正如所暗示的,a是動態的。
可能的重複:http://stackoverflow.com/questions/10565213/how-to-bind-a-localized-string-in-the-targetnullvalue-attribute –