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
2815
Nov 10 service release throwing exception when attempting to set EditorStyle
posted

This is the exception I get when attempting to set EditorStyle in Field.Setting instance:

 

System.ArgumentException was unhandled by user code

  Message="FieldSettings.EditorStyle's TargetType setting can only be null or a type that derives from ValueEditor or is a base class of ValueEditor, XamNumericEditor is invalid.\r\nParameter name: FieldSettings.EditorStyle"

  Source="InfragisticsWPF3.v10.3"

  ParamName="FieldSettings.EditorStyle"

  StackTrace:

       at Infragistics.Windows.Utilities.ValidateTargetTypeOfStyle(Style style, Type targetType, String propertyName)

       at Infragistics.Windows.DataPresenter.FieldSettings.ValidateEditorStyle(Object value)

       at System.Windows.DependencyProperty.IsValidValue(Object value)

       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)

       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

       at Infragistics.Windows.DataPresenter.FieldSettings.set_EditorStyle(Style value)

       at EMS.Controls.Dictionary.Utility.FieldLayoutFactory.CreateFieldsLayout(ResourceDictionary resources, IEnumerable`1 lstFieldProps, IList`1 sortedFields) in C:\dev\LUT600 2.1.1\OCC600\Source\Libraries\ControlsDictionary\Factories\FieldLayoutFactory.cs:line 570

       at EMS.Controls.Dictionary.Utility.FieldLayoutFactory.CreateFieldsLayout(ResourceDictionary resources, DataPresentationProperties dataPresentationProps) in C:\dev\LUT600 2.1.1\OCC600\Source\Libraries\ControlsDictionary\Factories\FieldLayoutFactory.cs:line 605

       at OCC600.BeaconManager.Views.SolutionsView..ctor(SolutionsViewModel model, DataPresentationProperties fieldProps, UniqueNameAlias id) in C:\dev\LUT600 2.1.1\OCC600\Source\BeaconManager\BeaconManager\Views\SolutionsView.xaml.cs:line 49

       at OCC600.BeaconManager.BeaconAlertPresenter.ShowView(Object arg) in C:\dev\LUT600 2.1.1\OCC600\Source\BeaconManager\BeaconManager\BeaconAlertPresenter.cs:line 270

       at OCC600.BeaconManager.BeaconAlertPresenter.Initialize(Boolean useDefault) in C:\dev\LUT600 2.1.1\OCC600\Source\BeaconManager\BeaconManager\BeaconAlertPresenter.cs:line 148

       at OCC600.BeaconManager.BeaconAlertPresenter..ctor(IUnityContainer container) in C:\dev\LUT600 2.1.1\OCC600\Source\BeaconManager\BeaconManager\BeaconAlertPresenter.cs:line 82

       at OCC600.BeaconManager.Module.Initialize() in C:\dev\LUT600 2.1.1\OCC600\Source\BeaconManager\BeaconManager\Module.cs:line 17

       at Microsoft.Practices.Composite.Modularity.ModuleLoader.Initialize(ModuleInfo[] moduleInfos)

  InnerException: 

 

Style being used is defined as follows:

 

  <Style x:Key="LeftAlignedXamGridIntegerEditorStyle"  TargetType="{x:Type igEd:XamNumericEditor }">                           

        <Setter Property="VerticalAlignment" Value="Center"/>

        <Setter Property="FlowDirection" Value="LeftToRight"/>

        <Setter Property="HorizontalContentAlignment" Value="Left"/>                                

    </Style>

What should I do?

TIA.