小编Nas*_*ser的帖子

Silverlight Xaml和资源中的StringFormat

我的资源文件中有格式字符串.我试图使用FormatString从TextBlock的Text属性访问这些

Text="{Binding Path=Project.Name, StringFormat={Binding Path=WkStrings.DisplayProjectName, Source={StaticResource ResourceWrapper}}}"
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Provide value on 'System.Windows.Data.Binding' threw an exception
Run Code Online (Sandbox Code Playgroud)

错误指向Text =.

是否可以从"嵌套绑定"访问资源?

xaml binding silverlight-4.0

6
推荐指数
1
解决办法
4402
查看次数

标签 统计

binding ×1

silverlight-4.0 ×1

xaml ×1