【发布时间】:2017-04-05 07:00:07
【问题描述】:
为什么 MergedWith ResourceDictionary 属性不支持 OnIdiom 功能? 此代码运行良好:
<ResourceDictionary.MergedWith>theme:PhoneTheme</ResourceDictionary.MergedWith>
这一项将 MergedWith 属性设置为 null :
<ResourceDictionary.MergedWith>
<OnIdiom x:TypeArguments="x:String">
<OnIdiom.Phone>theme:PhoneTheme</OnIdiom.Phone>
<OnIdiom.Tablet>theme:TabletTheme</OnIdiom.Tablet>
</OnIdiom>
</ResourceDictionary.MergedWith>
有没有办法在手机成语和平板成语之间使用不同的主题?
【问题讨论】:
标签: c# xaml xamarin xamarin.forms