如何设置控制X:编程的Uid属性的地铁应用程序的控制? [英] How to set control x:Uid attribute programmatically for a metro app control?

查看:141
本文介绍了如何设置控制X:编程的Uid属性的地铁应用程序的控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要设置X:一些控制编程的UID属性?此属性用于本地化。

I need to set the x:Uid attribute of some control programmatically? this attribute is used for localization.

推荐答案

我不是关于这个问题真的很强大,但如果我们是在谈论同样的事情,你可以在这里看到: BamlLocalizableResourceKey.Uid物业

I am not really strong on this subject but if we are talking about the same thing, as you can see here: BamlLocalizableResourceKey.Uid Property

公共财产只有get,所以你不能从C#代码轻易改变它。

the public property has only a get, so you can't change it easily from C# code.

public string Uid { get; }



看到更多的 X:。的Uid指令来找出这个属性被设置为指令,而不是像在XAML其它属性。

see more x:Uid Directive to find out that this property is set as directive and not like other attributes in XAML.

这篇关于如何设置控制X:编程的Uid属性的地铁应用程序的控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆