在 WinRT 中为后台属性资源库值定义密钥时,转换器未触发



当我在 WPF 中使用它时,任何人都可以帮助它,它工作正常。但在 WinRT 中,它没有调用转换器

<Application.Resources>
    <local:ConverterClass x:Key="converter"/>
    <Style TargetType="Grid:GridRowHeaderCell">
        <Setter Property="Background" Value="{Binding Converter={StaticResource converter }}"/>
    </Style>
</Application.Resources>

WinRT 中没有对 setter 绑定的默认支持,相反,您可以在其他站点中建议解决方法,可能是我要附加的链接可能会对您有所帮助

友情链接 : https://aventuraspuntonet.wordpress.com/2014/02/13/mixing-style-setters-and-bindings-in-winrt/

最新更新