public static void BuildMetadata(EnumMetadataBuilder <EnumWithDisplayName_ExternalMetadata3> builder)
 {
     builder
     .Member(EnumWithDisplayName_ExternalMetadata3.MemberOne)
     .DisplayName("OneMember")
     .ImageUri(UriPrefix + "icon1.ico")
     .EndMember()
     .Member(EnumWithDisplayName_ExternalMetadata3.MemberTwo)
     .DisplayName("TwoMember")
     .ImageUri(UriPrefix + "icon2.ico")
     .Description("desc")
     .EndMember()
     .Member(EnumWithDisplayName_ExternalMetadata3.MemberThree)
     .NotAutoGenerated()
     .EndMember();
 }
Example #2
0
 public static void BuildMetadata(EnumMetadataBuilder <PersonPrefix> builder)
 {
     builder
     .Member(PersonPrefix.Dr)
     .ImageUri("pack://application:,,,/DevExpress.MailClient.Xpf;component/Images/Tasks/Doctor.png")
     .EndMember()
     .Member(PersonPrefix.Mr)
     .ImageUri("pack://application:,,,/DevExpress.MailClient.Xpf;component/Images/Tasks/Mr.png")
     .EndMember()
     .Member(PersonPrefix.Ms)
     .ImageUri("pack://application:,,,/DevExpress.MailClient.Xpf;component/Images/Tasks/Ms.png")
     .EndMember()
     .Member(PersonPrefix.Miss)
     .ImageUri("pack://application:,,,/DevExpress.MailClient.Xpf;component/Images/Tasks/Miss.png")
     .EndMember()
     .Member(PersonPrefix.Mrs)
     .ImageUri("pack://application:,,,/DevExpress.MailClient.Xpf;component/Images/Tasks/Mrs.png")
     .EndMember();
 }
 public static void BuildMetadata(EnumMetadataBuilder<HorizontalAlignment> builder) {
     builder
         .Member(HorizontalAlignment.Center)
             .Description("Centered")
             .ImageUri("pack://application:,,,/Images/Centered.png")
         .EndMember()
         .Member(HorizontalAlignment.Left)
             .Description("Align Left")
             .ImageUri("pack://application:,,,/Images/AlignLeft.png")
         .EndMember()
         .Member(HorizontalAlignment.Right)
             .Description("Align Right")
             .ImageUri("pack://application:,,,/Images/AlignRight.png")
         .EndMember()
         .Member(HorizontalAlignment.Stretch)
             .Description("Stretched")
             .ImageUri("pack://application:,,,/Images/Stretched.png")
         .EndMember();
 }
 public static void BuildMetadata(EnumMetadataBuilder <HorizontalAlignment> builder)
 {
     builder
     .Member(HorizontalAlignment.Center)
     .Description("Centered")
     .ImageUri("pack://application:,,,/Images/Centered.png")
     .EndMember()
     .Member(HorizontalAlignment.Left)
     .Description("Align Left")
     .ImageUri("pack://application:,,,/Images/AlignLeft.png")
     .EndMember()
     .Member(HorizontalAlignment.Right)
     .Description("Align Right")
     .ImageUri("pack://application:,,,/Images/AlignRight.png")
     .EndMember()
     .Member(HorizontalAlignment.Stretch)
     .Description("Stretched")
     .ImageUri("pack://application:,,,/Images/Stretched.png")
     .EndMember();
 }