Hi,
how can I add the new xamColorPicker in a Cell of a Grid. Id' like to have it in each Cell of a column. Is this possible?
Thanks for helping!Gawain
Hello Gawain,
You can host a xamColorPicker just like any control in a XamDataGrid's cell. You can see samples of putting an Image in a Cell in the XamFeatureBrowser samples, or you can use this blog post by Andrew Smith : http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/03/27/hosting-wpf-controls-in-a-xamdatagrid-cell.aspx
the sample is not really working with the latest versions. Can you please give me the basic code structure for my issue?
Hi Charlie,
I'm running it on Windows XP. I have tried running the exact same sample on two colleagues' PCs (one of which is completely identical to mine) and they are unable to reproduce the error. So, it appears it is something particular to my PC.
Does the stack trace not indicate what it could be?
Thanks,
Jason
Hello Jason.
I did some debugging with this and it appears to be a bug in our color picker and I am going to create a development issue for it. The only possible workaround would be to derive from the color picker and then override the OnCreateAutomationPeer method and return null. We don't have a definite workaround at this time, but this is a possibility. I will log this with oru developers and give you the TFS work item number.
Sincerely,
CharlieSenior Developer Support EngineerMCTS
I have created TFS issue #59706 for this.
We are experiencing the same problem with the xamColorPicker on Windows 7. Is there any updates on this issue?
Erik
I am also facing problem with Infragistics.Controls.Editors.XamMultiColumnComboEditor 11.2 version
Top-level ExceptionType: System.ArgumentExceptionMessage: Value does not fall within the expected range.Source: mscorlibStack Trace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) at MS.Internal.Automation.UiaCoreProviderApi.CheckError(Int32 hr) at System.Windows.Automation.Provider.AutomationInteropProvider.RaiseAutomationPropertyChangedEvent(IRawElementProviderSimple element, AutomationPropertyChangedEventArgs e) at System.Windows.Automation.Peers.AutomationPeer.RaisePropertyChangedEvent(AutomationProperty property, Object oldValue, Object newValue) at Infragistics.AutomationPeers.XamComboEditorAutomationPeer`2.RaiseSelectionPropertyChangedEvent(Int32 oldValue, Int32 newValue) at Infragistics.AutomationPeers.XamComboEditorAutomationPeer`2.SelectedItems_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item) at System.Collections.ObjectModel.Collection`1.Add(T item) at Infragistics.Controls.Editors.ComboEditorBase`2.SelectItem(Object data, Int32 index, Boolean clearRestOfSelection) at Infragistics.Controls.Editors.ComboEditorBase`2.SelectItem(T item, Boolean clearRestOfSelection) at Infragistics.Controls.Editors.ComboEditorBase`2.OnComboEditorItemClicked(T comboEditorItem) at Infragistics.Controls.Editors.XamMultiColumnComboEditor.OnComboEditorItemClicked(ComboRow comboEditorItem) at Infragistics.Controls.Editors.ComboCellControl.OnMouseLeftButtonDown(MouseButtonEventArgs e) at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
This appears to have been addressed by development issue 82804 and the fix is in the latest service release for 2011 Volume 2 which you can download from they my keys and downloads page as long as your product key is registered.
Let me know if you have any questions with this matter.