Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > How to execute value editor from custom wizard ?
 

How to execute value editor from custom wizard ?

Is there any way, to execute value editor before my custom wizard starts ? Problem is that my custom wizard(ManageMappingsWizard) "overrides"
wizard from tags below, i didn't see field "DataSet" and my custom editor(ClassBrowserEditor) seems to not starting.
Have you got any idea, how to collect recipe argument by the value editor (wechich have to had a rich user interface) and then start my custom wizard ?

<GatheringServiceData>
<Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
<Pages>
<Page Type="TestGuidancePackage.Wizards.ManageMappingsWizard, TestGuidancePackage" Width="600" Height="300">
<Title>asfasfasf</Title>
<LinkTitle>asfasf</LinkTitle>
<Help>asfasfa</Help>
<Fields>
<Field ValueName="DataSetName" Label="sdfsdf">
<Editor Type="TestGuidancePackage.Editors.ClassBrowserEditor, TestGuidancePackage" />
</Field>
</Fields>
</Page>
</Pages>
</Wizard>
</GatheringServiceData>
nauron  Friday, August 03, 2007 2:38 PM
If you are implementing your custom page you can't define the fields in the xml, instead you have to create your own UI using WinForms, add the controls for your fields and update the recipe arguments in the page implementation.

If your using the GAX/GAT built-in page you can declarative define the field of the wizard and the UI Editor for each field as you did.
Adrian Alonso  Friday, August 03, 2007 3:03 PM
If you are implementing your custom page you can't define the fields in the xml, instead you have to create your own UI using WinForms, add the controls for your fields and update the recipe arguments in the page implementation.

If your using the GAX/GAT built-in page you can declarative define the field of the wizard and the UI Editor for each field as you did.
Adrian Alonso  Friday, August 03, 2007 3:03 PM

How do i use the value editor to a field in a wizard?

satish

satish padidem  Wednesday, January 09, 2008 10:29 AM

Hi Satish,

<GatheringServiceData>

<Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">

<Pages>

<Page>

<Title>Collect information using editors, converters and value providers.</Title>

<Fields>

<Field ValueName="Project" Label="Reference Project">

<Tooltip>Shows a complex editor for selecting a project in the current solution, provided with the Library.</Tooltip>

<Editor Type="Microsoft.Practices.RecipeFramework.Library.Editors.SolutionPickerEditor, Microsoft.Practices.RecipeFramework.Library" />

</Field>

</Fields>

</Page>

</Pages>

</Wizard>

</GatheringServiceData>

The above xml tags, is defined a field, under the GatheringServiceData. In order to use a value editor for a field, you need to provide the Editor tag with its type inside the filed tag.

You can use the above filed, that will provide u a solutionpicker, to pick a project from the solution.

Regards,

-Noor

Noor Mohammed  Wednesday, January 09, 2008 2:08 PM

Hi Noor, thanks for the reply, however how do i add editor in a custom wizard.

Thanks

satish

satish padidem  Thursday, January 10, 2008 1:41 PM

You can use google to search for other answers

Custom Search

More Threads

• Reference Errors..
• How to add a file and project reference
• SFT WiX Setup not including custom assemblies used by Guidance Package
• Possible Syntax for CommandBar Name Attribute
• Is WSSF right for me?
• ValueProvider for the first selected Item in a project?
• Is there a way to use the T3 engine as a Custom Tool?
• URGENT: Project and Item Templates issue!
• Exception while using the 'Add Event Publication' Recepie
• Passing argument between wizards (with custom TypeConverters)