从Xaml文件中获取App.Config的值 [英] Get value of App.Config from Xaml file
本文介绍了从Xaml文件中获取App.Config的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我有一个如何从Xaml文件访问App.Config值的问题,请帮帮我!非常感谢你!
Hi every body!
i have a problem in how to access App.Config value from Xaml file, please help me! thank you so much!
推荐答案
这意味着,我有一个包含值的App.config
< appsettings>
< add key =FlowDirectionvalue =LTR>
- >如何获得来自Xaml文件的这个值('LTR')
< setter property =FlowDirection>
Value ={Binding RelativeSource = {RelativeSource Self},Converter = {StaticResource
FlowDirectionConverter}},ConvertParameter ='... config value ....'/& gt;
< / setter>
我想将值LTR绑定到ConvertParameter
it mean, i have a App.config containing a value as
<appsettings>
<add key="FlowDirection" value="LTR">
->how to get this value ('LTR') from from Xaml file
<setter property="FlowDirection">
Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource
FlowDirectionConverter}}, ConvertParameter = '...config value....'"/>
</setter>
i want to binding value "LTR" to ConvertParameter
这篇关于从Xaml文件中获取App.Config的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文