i have been using code like this for quite some time:
e.Cell.Style = LayoutRoot.Resources("myCanNotEditCell")
out of the blue i am running a test app this morning and it throws an exception, now i can not get it to go away, cause i have no idea how it came about
Message:Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Stack" at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.SetValue(INativeCoreTypeWrapper obj, DependencyProperty property, DependencyObject doh) at System.Windows.DependencyObject.SetValue(DependencyProperty property, DependencyObject doh) at System.Windows.FrameworkElement.set_Style(Style value) at Infragistics.Silverlight.Controls.CellBase.ApplyStyle() at Infragistics.Silverlight.Controls.CellBase.set_Style(Style value) at SL3_TestOne.GridTest2.dg_CellControlAttached(Object sender, CellControlAttachedEventArgs e) at Infragistics.Silverlight.Controls.XamWebGrid.OnCellControlAttached(Cell cell) at Infragistics.Silverlight.Controls.Cell.c() at Infragistics.Silverlight.Controls.Primitives.TemplateColumnContentProvider.ResolveDisplayElement(Cell cell, Binding cellBinding) at SL3_TestOne.MyColumnContentProvider.ResolveDisplayElement(Cell cell, Binding cellBinding) at Infragistics.Silverlight.Controls.CellControl.AttachContent() at Infragistics.Silverlight.Controls.Primitives.CellControlBase.OnAttached(CellBase cell) at Infragistics.Silverlight.Controls.CellBase.OnElementAttached(CellControlBase element) at Infragistics.Silverlight.RecyclingContainer`1.Infragistics.Silverlight.ISupportRecycling.OnElementAttached(FrameworkElement elem) at Infragistics.Silverlight.RecyclingManager.AttachElement(ISupportRecycling obj, Panel parent) at Infragistics.Silverlight.Controls.Primitives.CellsPanel.RenderCell(Column column, Collection`1 starColumns, Double& maxHeight, Boolean insert, Collection`1 visibleCells, Boolean isInfinite) at Infragistics.Silverlight.Controls.Primitives.CellsPanel.RenderCells(Double availableWidth) at Infragistics.Silverlight.Controls.Primitives.CellsPanel.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)"
i thought this was interesting.
Under:
System.Exceptiom -> Data ->Item
In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.
any idea what could have caused this or how to fix it
This sounds like a similar issue already reported:
http://forums.infragistics.com/forums/p/39600/224278.aspx#224278
Have you tried this solution?
unfortunately i will have to take ownership of this one, i spelled a color wrong which caused the issue!
as a general question, based on the link your provided, is it possible we will have to updating CellControlAttached code if we go to 2010.01 in the future?
thanks
Hi,
It actually depends on what you're doing in your style. If you're changing the Template property of the CellControl, then possibly, depending on if we have a fix we can apply internally, without affect perf.
However, if you're going to be switching to SL 4, when you switch over to 10.1, then no.
-SteveZ