【发布时间】:2016-02-04 10:34:44
【问题描述】:
我的资源字典中有一段文字:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<system:String x:Key="ResourceDictionaryName" Localization.Comments="$Content(DoNotLocalize)">Loc-en-EN</system:String>
<!--MainControl.xaml-->
<system:String x:Key="PersonalEmail">Please enter your email./system:String></ResourceDictionary>
我通过这种方式将它绑定到 xaml:
<TextBlock Text="{DynamicResource PersonalEmail}" Style="{DynamicResource TextBlockStyle}"/>
是否可以创建样式或转换器,例如显示请粗体,其余文本正常显示?
【问题讨论】:
标签: xaml formatting resourcedictionary