This project has moved and is read-only. For the latest updates, please go here.

Wizard control - Visual Studio 2012

Aug 16, 2012 at 1:51 PM

I've have been using the Wizard control within VS2010 for a while without a problem. In VS2012 however I receive an error on the designer:

"Specified cast is not valid"

When the project is running its fine, but it not good to see in the designer. Does anyone know of a workaround for this?

Aug 17, 2012 at 1:48 PM

Got the same problem, only effects the design surface, program still compiles and runs.  The error also shows in HomeView.xaml in the Samples.Modules.Wizard project.  Dev specs:

  1. Windows 8 Enterprise RTM 64-bit
  2. Visual Studio 2012 RTM
  3. Toolkit version 1.6
  4. Stacktrace

 at Xceed.Wpf.Toolkit.Core.Converters.WizardPageButtonVisibilityConverter.Convert(Object[] values, Type targetType, Object parameter, CultureInfo culture)
   at System.Windows.Data.MultiBindingExpression.TransferValue()
   at System.Windows.Data.MultiBindingExpression.Transfer()
   at System.Windows.Data.MultiBindingExpression.UpdateTarget(Boolean includeInnerBindings)
   at System.Windows.Data.MultiBindingExpression.AttachToContext(Boolean lastChance)
   at System.Windows.Data.MultiBindingExpression.AttachOverride(DependencyObject d, DependencyProperty dp)
   at System.Windows.Data.BindingExpressionBase.OnAttach(DependencyObject d, DependencyProperty dp)
   at System.Windows.StyleHelper.GetInstanceValue(UncommonField`1 dataField, DependencyObject container, FrameworkElement feChild, FrameworkContentElement fceChild, Int32 childIndex, DependencyProperty dp, Int32 i, EffectiveValueEntry& entry)
   at System.Windows.FrameworkTemplate.ReceivePropertySet(Object targetObject, XamlMember member, Object value, DependencyObject templatedParent)
   at System.Windows.FrameworkTemplate.<>c__DisplayClass6.<LoadOptimizedTemplateContent>b__4(Object sender, XamlSetValueEventArgs setArgs)
   at System.Xaml.XamlObjectWriter.OnSetValue(Object eventSender, XamlMember member, Object value)
   at System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent)
   at System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteEndObject()
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)

Aug 20, 2012 at 3:13 PM

The following issue has be created based on this discussion:

Oct 9, 2012 at 6:34 PM

I was able to reproduce the bug by Creating a Wizard without any pages. The "Specified cast is not valid" error happened. With the Fix from the v1.8, the Designer is working normally and there is no errors.

Nov 7, 2012 at 7:43 PM
Edited Nov 7, 2012 at 7:44 PM

Fixed in v1.8