Share via


WizardProperty Class

The WizardProperty provides a custom property for use in displaying as part of a WizardStep.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Wizard
Assembly:  Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime (in Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll)

Syntax

'Declaration
Public Class WizardProperty _
    Inherits Property
public class WizardProperty : Property
public ref class WizardProperty : public Property
public class WizardProperty extends Property

Remarks

WizardProperties allow a wizard step to attribute a class and provide infrastructure for validation and element references, similar to that used by ElementViewModel elements.

Examples

class PickExceptionTypeData { [EditorAttribute(typeof(TypeSelectionEditor), typeof(UITypeEditor))] [BaseType(typeof(Exception), TypeSelectorIncludes.AbstractTypes | TypeSelectorIncludes.BaseType)] [Validation(typeof(RequiredFieldValidator))] [ResourceDisplayName(ResourceName = "PickExceptionTypeStepExceptionTypeDisplayName", ResourceType = typeof(Resources))] [EditorWithReadOnlyText(true)] public string ExceptionType { get; set; } [Validation(typeof(RequiredFieldValidator))] [Reference(typeof(ExceptionHandlingSettings), typeof(ExceptionPolicyData))] [ResourceDisplayName(ResourceName = "PickExceptionTypeStepPolicyDisplayName", ResourceType = typeof(Resources))] public string Policy { get; set; } public string DatabaseName { get; set; } public string LogCategory { get; set; } } var structure = new PickExceptionTypeData(); var policyProperty = new WizardProperty(serviceProvider, structure, TypeDescriptor.GetProperties(wizardData)[Policy], validatorFactory, elementLookup);

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.ViewModel
    Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.Property
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Wizard.WizardProperty
        Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Wizard.AssociatedWizardProperty

See Also

WizardProperty Members

Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Wizard Namespace

Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Wizard.ConfigurationWizardStep

Microsoft.Practices.EnterpriseLibrary.Configuration.Design.WizardStep