Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1255
XamComboEditor throws exception in VS Designer
posted

Since upgrading to v2014.1 VS studio designer will throw an exception "-Infinity is not a valid value for MinDropDownWidth" and will not render the xaml. However the application will build and run without showing this exception.

I believe the problem is in the EditorsGeneric or EditorsMetro.xaml "ComboEditor_EditableComboBoxTemplate" and "ComboEditor_NonEditableComboBoxTemplate"

if I change MinWidth="{Binding (igEditors:XamComboEditor.ComboEditor).MinDropDownWidthResolved, RelativeSource={RelativeSource TemplatedParent}}" to be a static value such as MinWidth="200", then the control will render in the designer.

So I think the MinDropDownWidthResolved should not return -infinity.

Parents
No Data
Reply
  • 34510
    Offline posted

    Hello kcongdon,

    What version of Visual Studio are you using?  Also, what exactly do I need to do to reproduce this?  Can you give me some steps to follow?  Right now I added the EditorGeneric and EditorMetro.xaml files to my project along with the other dictionaries they require.  I got these from the Editors folder in the install directory. (C:\Program Files (x86)\Infragistics\2014.1\WPF\DefaultStyles\Editors)  I then added a XamComboEditor to the MainWindow and there is no designer error.  Is there more that I need to do?  I'm using Visual Studio 2012.

Children