دسترسی به فیلد های Static در XAML
نویسنده: محبوبه محمدی
تاریخ: ۱۳۹۲/۰۵/۱۵ ۲۰:۵
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
namespace Test
{
public class Constants
{
public static readonly string ConstantString = "Test";
}
}xmlns:test="clr-namespace:ItemTest "
<Label Content="{x:Static test:Constants.ConstantString}" />namespace Test
{
public enum VisiblityEnum
{
Collapse,
Hidden,
Visible
};
} xmlns:test="clr-namespace:Test"
<Label Content="{x:Static test:VisiblityEnum.Collapse}" />